go-org-orgwiki/org/testdata/keywords.org
Niklas Fasching 7c239a7aeb html: Add support for #+TOC keyword
org mode allows rendering the toc anywhere in the html document using the `TOC`
keyword [1]. There's more options but `#+TOC: headlines $n` should be enough
for starters. Note that org mode still requires setting `#+OPTIONS: toc:nil` to
disable the default toc

[1] https://orgmode.org/manual/Table-of-Contents.html
2021-03-28 17:12:25 +02:00

928 B

captions, custom attributes and more

echo "a bash source block with custom html attributes"
and multiple lines of captions!

and an image with custom html attributes and a caption

https://placekitten.com/200/200#.png
kittens!

named paragraph

named block

#not a comment because there's no space after the hashtag

table of contents

A table of contents can be rendered anywhere in the document by using

#+TOC: headlines $n

Where $n is the max headline lvl that will be included. You can use headlines 0 to include all headlines.