Commit graph

6 commits

Author SHA1 Message Date
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
Niklas Fasching
c025db7bdd Fix comments: comments must start with #\s not just # 2020-07-28 19:28:30 +02:00
Niklas Fasching
20970ec872 Add support for NAME keyword 2019-10-27 15:12:38 +01:00
Niklas Fasching
3709d1dc9c Revert "html: Export "#+HUGO: more" as <!--more-->"
This reverts commit 16a978fe48.

not needed after all - turns out hugo looks for the divider before rendering so
we can't do anything in go-org
2018-12-19 19:34:04 +01:00
Niklas Fasching
16a978fe48 html: Export "#+HUGO: more" as <!--more--> 2018-12-19 01:07:22 +01:00
Niklas Fasching
ade2a1c875 Improve tests: Add pretty_org fixtures to allow testing pretty printing
Until now we expected the .org file to print back to itself - we can't do that
when the input is not pretty printed already - with the introduction of blocks
with unindented content that will be the case.
2018-12-18 23:54:04 +01:00