mirror of
https://github.com/wahyd4/docsify.git
synced 2026-08-09 21:36:10 +10:00
fix: emojis in titles not working correctly and update (#1016)
the doc(add a note)
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
docsify extends Markdown syntax to make your documents more readable.
|
||||
|
||||
> Note: For the special code syntax cases, you'd better put them within a code backticks to avoid any conflicting from configurations or emojis.
|
||||
|
||||
## important content
|
||||
|
||||
Important content like:
|
||||
|
||||
@@ -21,9 +21,12 @@ export function getAndRemoveConfig(str = '') {
|
||||
str = str
|
||||
.replace(/^'/, '')
|
||||
.replace(/'$/, '')
|
||||
.replace(/(?:^|\s):([\w-]+)=?([\w-]+)?/g, (m, key, value) => {
|
||||
config[key] = (value && value.replace(/"/g, '')) || true
|
||||
return ''
|
||||
.replace(/(?:^|\s):([\w-]+:?)=?([\w-]+)?/g, (m, key, value) => {
|
||||
if(key.indexOf(':') === -1){
|
||||
config[key] = (value && value.replace(/"/g, '')) || true
|
||||
return ''
|
||||
}
|
||||
return m
|
||||
})
|
||||
.trim()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user