awesome-cpp icon indicating copy to clipboard operation
awesome-cpp copied to clipboard

Can't navigate to multi-word headers using the navigation

Open drasive opened this issue 11 years ago • 3 comments

You can't navigate to a multi-word header (e.g. "Artificial Intelligence" or "Machine Learning") using the navigation section at the top on fffaraz.github.io/awesome-cpp/. This is because the words in the href attributes of the navigation are split with "-" (e.g. a 'href="#machine_-_learning"') but the section ids don't have anything between the words in their id attributes (e.g. '<h2 id="machinelearning"').

drasive avatar Mar 22 '15 19:03 drasive

:+1:

nickdesaulniers avatar Mar 23 '15 04:03 nickdesaulniers

I find it interesting to note that when displaying the README.md on Github, the anchors work, while they don't work on http://fffaraz.github.io/awesome-cpp/.

The HTML code differs:

<h2 id="standardlibraries">Standard Libraries</h2> on http://fffaraz.github.io/awesome-cpp/

vs

<h2><a id="user-content-standard-libraries" class="anchor" href="#standard-libraries" aria-hidden="true"> [...] on here.

There seem to be two different Markdown renderers at work?

elador avatar Apr 08 '15 10:04 elador

Yes, I have used (probably an old version of) showdown.js. https://github.com/showdownjs/showdown

Please take a look at the gh-pages branch of this repo.

fffaraz avatar Apr 08 '15 15:04 fffaraz