hexo-renderer-marked
hexo-renderer-marked copied to clipboard
[Improvment] Definition of the order of the anchors within the page is not consistent with Typora
Check List
Please check followings before submitting a new feature request.
- [x] I have already read Docs page
- [x] I have already searched existing issues
Feature Request
When there are multiple duplicate titles on the page, such as three "Original", Hexo references each anchor as "#Original", "#Original-1", and "Original-2".
Whereas Typora references them as "#Original-1", "Original-2", and "#Original-3".
This causes the locally written anchor link [jump to original image](#Original-2)
jumps to a different title on the web side which do not match the local one. It will jump to the second title in Typora, and to the third on the web side.
If there is no "#Original-2" on the web side, the link will not respond.
I hope you can find a way to unify it.
Thank you very much!