diff --git a/index.md b/index.md index afc10f02..493a119f 100644 --- a/index.md +++ b/index.md @@ -62,7 +62,7 @@ graph TB # Setup Follow these steps to get your development environment set up. -### Install the dependencies +### **_Install_** the dependencies First make sure that you have Python 3 installed. If you're on MacOS, you may have to `brew install python3` first. ```console diff --git a/src_js/components/sidebar/TableOfContents.tsx b/src_js/components/sidebar/TableOfContents.tsx index 3dc75e25..9b8563a1 100644 --- a/src_js/components/sidebar/TableOfContents.tsx +++ b/src_js/components/sidebar/TableOfContents.tsx @@ -187,6 +187,20 @@ function getHeadingLabel(headingNode: HTMLElement): h.JSX.Element { ); } else if (childNode.tagName === 'ABBR') { labelComponents.push({childNode.innerText}); + } else if ( + childNode.tagName === 'A' && + childNode.classList.contains('anchorjs-link') + ) { + // Skip the AnchorJS link + return; + } else { + // Retain any other HTML elements + labelComponents.push( + , + ); } break; }