Right now we didn't bother implementing the logic for sluggifying the hrefs and just used the ugly %20 / upper- and lowercased versions of title anchor links.
Example:
## Hello World
should translate to #hello-world instead of #Hello%20World
Things to do:
Add github-slugger logic to Markdown.re's <Anchor> component
Make sure:
That multiple titles with the same content are actually suffixed with a increasing number (e.g. #using and #using-1)
That the sidebars refer to the same sluggified anchor (sync logic between markdown rendering and TOC generation)
Right now we didn't bother implementing the logic for sluggifying the hrefs and just used the ugly
%20
/ upper- and lowercased versions of title anchor links.Example:
should translate to
#hello-world
instead of#Hello%20World
Things to do:
Markdown.re
's<Anchor>
componentMake sure:
#using
and#using-1
)