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