Skip to content

Commit 99c0281

Browse files
committed
fix: options for parser when nnormalize, close #97
1 parent cff0a92 commit 99c0281

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ module.exports = function postHTMLExpressions (options) {
155155

156156
// kick off the parsing
157157
return function (tree) {
158-
return normalizeTree(clearRawTag(walk({ locals: options.locals }, tree)))
158+
return normalizeTree(clearRawTag(walk({ locals: options.locals }, tree)), tree.options)
159159
}
160160
}
161161

@@ -414,6 +414,6 @@ function clearRawTag (tree) {
414414
return m
415415
}, [])
416416
}
417-
function normalizeTree (tree) {
418-
return parser(render(tree))
417+
function normalizeTree (tree, options) {
418+
return parser(render(tree), options)
419419
}

0 commit comments

Comments
 (0)