mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Display table of contents on right side
This commit is contained in:
@@ -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>
|
||||
`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user