thegeeklab / hugo-geekdoc

Hugo theme made for documentation

Home Page:https://geekdocs.de

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Table of Contents shortcode needs better documentation on difference between html and raw

Miepee opened this issue · comments

See title.
Repro case:

{{<expand>}}
{{<toc>}}
{{</expand >}}

# foobar

grafik

Please use format=raw for more details see https://geekdocs.de/shortcodes/toc/

Unfortunately, I don't really see any details on that page. From reading there, I can't seem to find any clue what the actual difference is between html and raw for format, only that I can change it :/

EDIT: does html always append an hr?

Yes, html will always add a horizontal line. Agree needs docs improvement.

Cool.
Also just found the source code for that here:

I'll change the title to reflect this, thanks :)