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
Automatic section anchors #19
Comments
The users could enable or disable this enhancement ? Because I think for a static web site it could be better to choose. |
ok for me |
It's done with :
and tests :
A todo is stay, because it's possible to have duplicated anchors |
I work on the duplicated anchors, and for now, the automatic generated anchors name are always encoded like :
But this way don't work when we have already an anchor with a name which will be generated, for example (in html) :
It will render after transformation :
If you have a better idea... |
I managed the duplicated anchors with :
I use my previous post but I extend the idea to checking anchors before transformation. |
Each section title should automatically generate an implicit hyperlink target (aka, anchor) pointing to the section. The text of the hyperlink target (the "reference name") is the same as that of the section title.
The text was updated successfully, but these errors were encountered: