Skip to content

Commit b16b36a

Browse files
committed
Collect H1 refs titles as well
1 parent ba81acb commit b16b36a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/format/html/format-html-appendix.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export async function processDocumentAppendix(
111111
parentEl && parentEl.tagName === "SECTION" &&
112112
parentEl.childElementCount === 2 // The section has only the heading + the refs div
113113
) {
114-
const headingEl = parentEl.querySelector("h2, h3, h4, h5, h6");
114+
const headingEl = parentEl.querySelector("h1, h2, h3, h4, h5, h6");
115115
if (headingEl) {
116116
headingEl.remove();
117117
return headingEl.innerText;

0 commit comments

Comments
 (0)