TOC in exports
- Dominant language
- Haskell
- Stars
- 2.3k
- Forks
- 231
- PR merge metrics
- No merged PRs in 30d
Description
I made some tests:
Configuration file:
```table-of-contents: yes
pandoc-user-data: pandoc
``````
Pandoc template:
```$if(toc)$
\tableofcontents
$endif$```
_________________________
With page metadata:
```---
toc: no
...```
Gitit view: no TOC
LaTeX export: no TOC
PDF export: TOC
_________________________
With page metadata:
```---
toc: yes
...```
Gitit view: TOC
LaTeX export: no TOC
PDF export: TOC
Apparently, the doc metadata is taken into account by the web render only. However, there is an inconsistence between the .tex and the .pdf exports: one has a TOC and the other one has not.
Is there a way to share the toc metadata of gitit to pandoc, enabling this latter to add or not the toc depending on the choice on gitit?
``````
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.