Closed axelhahn closed 2 years ago
I'll see if that's possible, we should be able to get close to that.
By any chance do you know if GitHub has a documentation on the rules used to change titles to ids ?
I am not a markdown guru ... what I found:
Github has a documentation: https://docs.github.com/en/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax ... but I didn't see something about generation of the ids.
Gitlab tells a bit more: https://docs.gitlab.com/ee/user/markdown.html#header-ids-and-links The IDs are generated from the content of the header according to the following rules:
Thanks for the links, I changed the permalinks and they should be compatible with GitHub and GitLab for most cases.
The changes are in the master branch and should be released in the next few days
(Maybe it is a feature request - not a bug)
Describe the bug Local anchors of md files in a docs folder have another id in the rendered view on Github or Gitlab - compared to the local anchors in the daux rendered page.
To Reproduce Steps to reproduce the behavior:
Expected behavior If I publish my code and md files in docs folder on Github and want to use local anchors in the markdown then I must decide: shall they work for Github rendering or for the generated pages with Daux.
[my local link](#somewhere)
vs.[my local link](#page_somewhere)
It would be good if Daux would create the ids of headlines in the same way like Github does:
Screenshots none
Desktop (please complete the following information): Linux; PHP 8.0.14; Daux 0.17.2
Smartphone (please complete the following information): none
Additional context none