fix(remark-include): disable scary codepath
This commit is contained in:
parent
b39a017918
commit
9474e7d3f0
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ export const remarkInclude: Plugin<[], Root> = ({ resolveFrom }: { resolveFrom:
|
||||||
const ast = processor.parse(includeContents);
|
const ast = processor.parse(includeContents);
|
||||||
return processor.runSync(ast, includeContents).children;
|
return processor.runSync(ast, includeContents).children;
|
||||||
} else {
|
} else {
|
||||||
|
throw new Error("noop: unused by petalpkgs");
|
||||||
// trim trailing newline
|
// trim trailing newline
|
||||||
includeContents.contents = includeContents.contents.trim();
|
includeContents.contents = includeContents.contents.trim();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue