hexojs / hexojs/hexo-renderer-marked

[Improvment] Definition of the order of the anchors within the page is not consistent with Typora

Open
#239 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
183
Forks
93
PR merge metrics
No merged PRs in 30d

Description

## Check List

Please check followings before submitting a new feature request.

- [x] I have already read [Docs page](https://hexo.io/docs/)
- [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!

## Others

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.