denysdovhan / wtfjs

🤪 A list of funny and tricky JavaScript examples
http://bit.ly/wtfjavascript
Do What The F*ck You Want To Public License
34.95k stars 2.55k forks source link

Chinese translation seems not using doctoc #120

Closed libook closed 3 years ago

libook commented 5 years ago

I just created a pull request for adding "resolve() won't return Promise instance". I am chinese, so I have written the Chinese translation, too. After I ran npm run toc ./README-zh-cn.md, I found that doctoc has changed the whole index. Because the previous version directly using Chinese charactors in the index, but doctoc prefer url-encoded.

For more clear git commit record, I restored other indexe lines.

Please check out this to compare 81st line and other lines of index.

denysdovhan commented 3 years ago

Now it does. Fixed. Thanks for reporting!