We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aae9ecd commit 5d820e5Copy full SHA for 5d820e5
lib/index.js
@@ -1,6 +1,8 @@
1
'use strict'
2
3
const vm = require('vm')
4
+const parser = require('posthtml-parser')
5
+const render = require('posthtml-render')
6
7
const getNextTag = require('./tags')
8
const parseLoopStatement = require('./loops')
@@ -153,7 +155,7 @@ module.exports = function postHTMLExpressions (options) {
153
155
154
156
// kick off the parsing
157
return function (tree) {
- return clearRawTag(walk({ locals: options.locals }, tree))
158
+ return normalizeTree(clearRawTag(walk({ locals: options.locals }, tree)))
159
}
160
161
@@ -412,3 +414,6 @@ function clearRawTag (tree) {
412
414
return m
413
415
}, [])
416
417
+function normalizeTree(tree) {
418
+ return parser(render(tree))
419
+}
0 commit comments