-
DescriptionI am generating a dynamic quarto document for our database documentation which is going to be hosted in a gitlab repo in the form of a GFM markdown. Since the document will contain loads of headings and subheadings (each table/view will get a heading) a sidebar navigation similar to the HTML output would be super useful. Does anyone know if that is doable in GFM? A "Back" button/link for each section which jumps top the TOC would do the trick too I guess. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
GFM is "regular" markdown. You can reference any headings, so you can just do that at the bottom of your document:
See https://quarto.org/docs/reference/formats/markdown/gfm.html. |
Beta Was this translation helpful? Give feedback.
Do what you want, note that
#readme
anchor in GitHub means the beginning of theREADME.md
file.Also GitHub creates a "sidebar":
Maybe there are similar (likely not identical) features in GitLab.
For the back to top link, simply targets the title.
See "Heading identifiers" in Pandoc documentation.