Commit d75c5532 authored by NGPixel's avatar NGPixel

fix: handle raw mustache expressions over multiple lines

parent c57c9d90
......@@ -250,7 +250,7 @@ module.exports = {
const list = $(node).contents().toArray()
list.forEach(item => {
if (item.type === 'text') {
const rawText = $(item).text()
const rawText = $(item).text().replace(/\r?\n|\r/g, '')
if (mustacheRegExp.test(rawText)) {
$(item).parent().attr('v-pre', true)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment