-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make anchors better when using TOC #202
Comments
Perhaps you are not using MultiMarkdown? MultiMarkdown doesn't generate anchors like |
I am using multimarkdown however i am also using cyrillic script for pages therefore case is not being changed. Other part is true: Latin alphabet headers are converted into lowercase with spaces stripped and no |
Yes -- unicode case folding would require including a larger library, which is not worth the "cost" for most users. You can specify a custom label for any header that you like if you don't want to use the default - |
Thank you for the answer. I dont mind the fact that case is capitalized in anchor links but i wanted to mention it.
I am i aware of that option however I wanted to use fully automated TOC generation without using any hard coded stuff. Is there a way to re-think decision to strip all spaces and instead replace them with dashes? That could be more than welcome feature and it would make anchor links much more readable in general |
It would break backwards compatibility with 17 years of MultiMarkdown.... So probably not something I'll do right now, but can consider it the next time there is a major new version. |
Is it possible to rethink maybe as a opt-in switch? Sorry for being pushy, i am just exploring options here. |
Possibly. |
Hi,
Multimarkdown is a wonderful piece of software and it works as advertised. I wanted to file this idea for an improvement of handling table of contents (TOC) anchors when exporting to HTML.
Currently, all TOC anchors are quite plain and there is no processing at this time in multimarkdown. While i can understand that action, it leaves the anchors a bit plain. Example of an anchor, from one HTML page:
Now prom the usability aspect, we should have something more like
Now from semantic point of view, it would be neat to have an option to process these anchors a bit. Pandoc does it quite good and can be used as an example:
-
) instead of spaceIs it possible to think about this and implement it in the future? Thank you.
The text was updated successfully, but these errors were encountered: