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 3fc4530 commit 8968c4cCopy full SHA for 8968c4c
1 file changed
index.js
@@ -1,3 +1,4 @@
1
+var parser = require('posthtml-parser');
2
var fs = require('fs');
3
var path = require('path');
4
@@ -7,6 +8,7 @@ module.exports = function(options) {
7
8
options.encoding = options.encoding || 'utf-8';
9
10
return function posthtmlInclude(tree) {
11
+ if (!tree.parser) tree.parser = parser;
12
tree.match({ tag: 'include' }, function(node) {
13
var src = node.attrs.src || false;
14
var content;
0 commit comments