rstacruz / flatdoc

Build sites fast from Markdown
http://ricostacruz.com/flatdoc
2.68k stars 262 forks source link

The menu navigation will not work if using special characters(Chinese, Japanese) #50

Open jsding opened 9 years ago

jsding commented 9 years ago

The Flatdoc.slugify function will remove all the chinese & japanese characters, that make all anchor empty.

modify var slug = Flatdoc.slugify(text); to var slug = text;

fixed this issue. I think these special characters are ok for DOM id attribute.