rstacruz / flatdoc

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

support chinese #26

Closed ckken closed 10 years ago

ckken commented 10 years ago

I update the slugify support chinese text = text.toLowerCase(); text = text.split(' ').join('-'); return text;

ckken commented 10 years ago

slugify support chinese

rstacruz commented 10 years ago

Unfortunately, this will match special characters too like !, and will not convert underscores to -'s (just like Github would do).