vuepress / vuepress-community

:bulb: Community supported ecosystem for VuePress
https://vuepress-community.netlify.app
MIT License
81 stars 62 forks source link

[Bug Report] Decode hash #85

Closed Mister-Hope closed 2 years ago

Mister-Hope commented 3 years ago

http://121.37.185.5/docs/zh-cn/intro/preface/#%E5%BC%80%E6%BA%90bi%E7%BB%84%E4%BB%B6

image

https://github.com/vuepress/vuepress-community/blob/7feb5c514090b6901cd7d9998f4dd858e0055b7a/packages/vuepress-plugin-smooth-scroll/src/enhanceApp.ts#L37

decodeURI is required here because browsers like newer version Chrome will automaticlly encode hash when copying links.

If this repo still accept PR, I will open one, if not I may fork one.

Waiting for your reply. @meteorlxy

meteorlxy commented 3 years ago

You can still open a PR to fix that.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.