markdown-toc
markdown-toc copied to clipboard
not support Chinese character in head(miss Chinese characters in toc anchor)
my test:
<!-- TOC depth:6 withLinks:1 updateOnSave:1 -->
- [head1标题1](#head11)
- [head2标题2](#head22)
<!-- /TOC -->
# head1标题1
## head2标题2
PS: same env info as #1
Hi.
I found a workaround for non ascii characters.
Save below init.js to your ~/.atom/init.js. https://gist.github.com/bongole/192706dcda8e70a98c2d
I tested this workaround on OSX 10.9.5 + atom 0.194.0.
Thanks @bongole , do you want to create a pull request to fix that bug?
I don't want to create a pull request. This bug is not only markdown-toc bug but also atom's builtin marked module bug.
Maybe there are some tasks to fix this bug.
- fix marked bug.
- build atom with fixed marked.
- fix markdown-toc bug.
This is heavy task for me.
It works! Sorry for my late reply. @bongole