alanwalk / markdown-toc

MarkdownTOC(Table Of Contents) Plugin for Visual Studio Code.
MIT License
141 stars 111 forks source link

Anchor for Chinese characters #13

Closed flinhong closed 7 years ago

flinhong commented 7 years ago

It seems that Chinese characters (or other characters other than English) in headings will convert into UTF-8 code like %AF%B9%E8 in the URL part. Thus cannot be used as anchors in vscode preview mode.

Maybe something like force_encoding('utf-8') can fix this.

alanwalk commented 7 years ago

最近有点忙,刚提的1.4.4版本解决了这个问题,更新一下试试

flinhong commented 7 years ago

🤗赞一个

From: Fuhao Song [mailto:notifications@github.com] Sent: 16 January 2017 12:00 To: AlanWalk/markdown-toc markdown-toc@noreply.github.com Cc: Frank Lin (林宏) flinhong@hotmail.com; Author author@noreply.github.com Subject: Re: [AlanWalk/markdown-toc] Anchor for Chinese characters (#13)

最近有点忙,刚提的1.4.4版本解决了这个问题,更新一下试试

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/AlanWalk/markdown-toc/issues/13#issuecomment-272769098, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMQ7dDxUOeCwS6uql6ewKZVaSdwS4-ytks5rSutVgaJpZM4Lda_X.