markdown-toc icon indicating copy to clipboard operation
markdown-toc copied to clipboard

not support Chinese character in head(miss Chinese characters in toc anchor)

Open oldratlee opened this issue 10 years ago • 4 comments

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

oldratlee avatar Dec 17 '14 15:12 oldratlee

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.

bongole avatar Apr 28 '15 17:04 bongole

Thanks @bongole , do you want to create a pull request to fix that bug?

nok avatar May 27 '15 10:05 nok

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.

  1. fix marked bug.
  2. build atom with fixed marked.
  3. fix markdown-toc bug.

This is heavy task for me.

bongole avatar May 28 '15 03:05 bongole

It works! Sorry for my late reply. @bongole

oldratlee avatar May 28 '15 05:05 oldratlee