Fix directive detection

This commit is contained in:
John Hildenbiddle 2020-10-18 18:35:24 -05:00
parent 019365969d
commit 8a56f7241f

View File

@ -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