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; }