From 96114a2bea70f31a4c72d75bbf50441bbcf34a72 Mon Sep 17 00:00:00 2001 From: Coder Date: Sat, 25 Apr 2026 03:56:17 +0000 Subject: [PATCH] [#54] extend bug report feature to headings and list items --- scripts/build-npa-book.mjs | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/scripts/build-npa-book.mjs b/scripts/build-npa-book.mjs index ebe801e2..1488c636 100644 --- a/scripts/build-npa-book.mjs +++ b/scripts/build-npa-book.mjs @@ -100,7 +100,16 @@ async function renderChapter(chapter, markdown) { if (!list.length) return; html.push(""); list = []; @@ -131,22 +140,40 @@ async function renderChapter(chapter, markdown) { if (sourceLevel === 1) { title = headingText; html.push(`

Section ${chapter.number}

`); + html.push( + `
`, + ); html.push( `${formatInline( headingText, )}`, ); + html.push( + ``, + ); + html.push(`
`); } else { headings.push({ id: headingId, title: headingText, level: sourceLevel, }); + html.push( + `
`, + ); html.push( `${formatInline( headingText, )}`, ); + html.push( + ``, + ); + html.push(`
`); } continue; }