From 76a8a934cdf4c38677075ebc3dc1db350c327c11 Mon Sep 17 00:00:00 2001 From: Alex Hernandez Date: Sat, 23 May 2026 04:10:16 +1000 Subject: [PATCH] :lipstick: add chapter titles to export --- src/main/ipcHandlers.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/ipcHandlers.ts b/src/main/ipcHandlers.ts index 3d1ec2f..cca6a96 100644 --- a/src/main/ipcHandlers.ts +++ b/src/main/ipcHandlers.ts @@ -307,9 +307,11 @@ export function registerIpcHandlers(): void { needsPageBreak = false } + const chapterTitle = doc.relativePath.split('/').pop() ?? doc.relativePath + const safeChapterTitle = chapterTitle.replace(/&/g, '&').replace(/${contentHtml}` + bodyHtml += `

${safeChapterTitle}

${contentHtml}
` needsPageBreak = true }