mirror of
https://gitee.com/docsifyjs/docsify.git
synced 2024-11-29 18:48:14 +08:00
Fix directive detection
This commit is contained in:
parent
019365969d
commit
8a56f7241f
@ -127,7 +127,7 @@ function renderMain(html) {
|
||||
// Template syntax, vueComponents, vueGlobalOptions
|
||||
if (docsifyConfig.vueGlobalOptions || vueComponentNames.length) {
|
||||
const reHasBraces = /{{2}[^{}]*}{2}/;
|
||||
const reHasDirective = /\sv-(bind|cloak|else|else-if|for|html|if|is|model|on|once|pre|show|slot|text)=/;
|
||||
const reHasDirective = /\sv-(bind:|cloak|else|else-if=|for=|html=|if=|is=|model=|on:|once|pre|show=|slot=|text=)/;
|
||||
|
||||
vueMountData.push(
|
||||
...dom
|
||||
|
Loading…
Reference in New Issue
Block a user