Display table of contents on right side

This commit is contained in:
thiloho
2024-08-25 19:32:57 +02:00
parent 8ea7f7b4a3
commit 0753345bba
2 changed files with 23 additions and 9 deletions

View File

@@ -124,10 +124,12 @@ const createMarkdownParser = (showToc = true) => {
}
tableOfContents = `
<details class="table-of-contents">
<summary>Table of contents</summary>
<section id="table-of-contents">
<h2>
<a href="#table-of-contents">Table of contents</a>
</h2>
${tocItems.join("")}
</details>
</section>
`;
}