rstacruz / flatdoc

Build sites fast from Markdown

Home Page:http://ricostacruz.com/flatdoc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

jsding opened this issue · comments

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.