fzankl / docsify-plugin-flexible-alerts

docsify plugin to convert blockquotes into beautiful and configurable alerts using preconfigured or own styles and alert types.
MIT License
129 stars 14 forks source link

About Chinese and description errors #4

Closed johnbitcn closed 5 years ago

johnbitcn commented 5 years ago

I want use chinese label ,I rewrote here

var l = (t || "").match(new RegExp(e + ":(([\\w\\s\\u4e00-\\u9fa5]*))"));
/<\s*blockquote[^>]*>(?:<p>|[\S\n]*)?\[!(\w*)((?:\|[\w*:[\u4e00-\u9fa5\w\s]+)*?)\]([\s\S]*?)(?:<\/p>)?<\s*\/\s*blockquote>/g,

and in README.md Have an error

iconVisibility:false
fzankl commented 5 years ago

Thanks @johnbitcn for your hint concerning Chinese labels. Can you please provide an example of the issue with and without your fix?

I'm not sure what you mean with the error in README.md. Can you provide further details?

johnbitcn commented 5 years ago

I read in README.md file, at here"iconVisibility:felse" ,but it did't work. when I read code file, it is "iconVisibility:hidden" . 001

then when I use chinese label, it can't be show. so I fix it. because in regular expression, "\w" is only stands "a-z" and "A-Z"

> [!TIP|label:自定义标题]
>  可以显示中文标题。

before: 003

after fix: 002

I hope express is clearly. my english like shit, so don't mind

fzankl commented 5 years ago

Fixed in release 1.0.2