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 9442535 commit 5d3bdd3Copy full SHA for 5d3bdd3
1 file changed
lib/index.js
@@ -57,6 +57,12 @@ module.exports = (options = {}) => {
57
}
58
59
subtree = tree.parser(source);
60
+ subtree.options = subtree.options || {};
61
+ subtree.options.from = path.isAbsolute(src)
62
+ ? src
63
+ : tree.options.from
64
+ ? path.relative(tree.options.from, src)
65
+ : src;
66
subtree.match = tree.match;
67
subtree.parser = tree.parser;
68
subtree.messages = tree.messages;
0 commit comments