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