fix(remark-include): disable scary codepath

This commit is contained in:
mei (ckie) 2024-11-24 02:24:34 +02:00
parent 2c4839c754
commit 3f29559b32
Signed by: ckie
GPG key ID: 13E79449C0525215

View file

@ -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();