Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/command/render/pandoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,9 @@ export async function runPandoc(
const filteredEngines = metadata.engines.filter((engine) => {
const enginePath = typeof engine === "string" ? engine : engine.path;
// Keep user engines, filter out bundled ones
return !enginePath?.includes("/src/resources/extension-subtrees/");
return !enginePath?.replace(/\\/g, "/").includes(
"resources/extension-subtrees/",
);
});

// Remove the engines key entirely if empty, otherwise assign filtered array
Expand Down Expand Up @@ -1314,9 +1316,9 @@ export async function runPandoc(
const filteredEngines = pandocPassedMetadata.engines.filter((engine) => {
const enginePath = typeof engine === "string" ? engine : engine.path;
if (!enginePath) return true;

const normalizedPath = enginePath.replace(/\\/g, "/");
return !normalizedPath.includes("extension-subtrees/");
return !enginePath.replace(/\\/g, "/").includes(
"resources/extension-subtrees/",
);
});

if (filteredEngines.length === 0) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: Basic doc
format: html
_quarto:
tests:
html:
printsMessage:
level: INFO
regex: 'resources[/\\]extension-subtrees[/\\]'
negate: true
---

It should be markdown engine.
Loading