taufik-nurrohman / parsedown-extra-plugin

Configurable Markdown to HTML converter with Parsedown Extra.
MIT License
60 stars 13 forks source link

suggest to modify regular expression matching #14

Closed bajins closed 4 years ago

bajins commented 4 years ago

Automatic id Attribute on Headers preg_replace Function Match Chinese

preg_replace(['/[^a-z\d\x{4e00}-\x{9fa5}]+/u'], '-', strtolower($Text))

https://github.com/woytu/DirectoryLister/blob/1c14776e15a35a680ec02a95278abbb1777a950a/resources/DirectoryLister.php#L480