Closed sdwolfz closed 7 years ago
I've also added a test for the markdown-toc-version
function. This should make the coverage 100% 🎉 .
Github, Gitlab, Gogs and other git hosting sites that parse a README.md file and display it as HTML deal with duplicate header names by appending their anchors with a number.
Right.
Note that this is just something I hacked one late evening and another early morning so I'm aware it's not the best implementation. Feel free to tell me how things can be improved.
Well, it's good enough for me right now. Plus, now we have all the tests so we can refactor when we'll feel the need to :)
Thanks a lot.
Cheers,
Github, Gitlab, Gogs and other git hosting sites that parse a README.md file and display it as HTML deal with duplicate header names by appending their anchors with a number.
Note that this is just something I hacked one late evening and another early morning so I'm aware it's not the best implementation. Feel free to tell me how things can be improved.