Skip to content

Commit ee77285

Browse files
committed
exclude chapter level metadata when creating single file book output
1 parent fb6a2a4 commit ee77285

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/project/types/book/book-render.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ async function mergeExecutedFiles(
356356
const titleMarkdown = frontTitle ? `# ${frontTitle}\n\n` : "";
357357

358358
itemMarkdown = bookItemMetadata(project, item, file) + titleMarkdown +
359-
file.executeResult.markdown;
359+
(partitioned?.markdown || file.executeResult.markdown);
360360
} else {
361361
throw new Error(
362362
"Executed file not found for book item: " + item.file,

0 commit comments

Comments
 (0)