We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4493cbd commit 9ad667dCopy full SHA for 9ad667d
scripts/extract-indices.mjs
@@ -22,13 +22,13 @@ const headers = options => (tree, file) => {
22
tree.children.forEach(child => {
23
if (child.type === "heading" && child.depth === 1) {
24
if (child.children.length > 0) {
25
- mainHeader = child.children[0].value;
+ mainHeader = child.children.map(element => element.value).join("");
26
}
27
28
if (child.type === "heading" && child.depth === 2) {
29
30
const id = child.data.id || "";
31
- const name = child.children[0].value;
+ const name = child.children.map(element => element.value).join("");
32
headers.push({ name, href: id });
33
34
0 commit comments