Files
Albert Krewinkel 0d6c2e3e22 ConTeXt writer: fix previous commit for some unlisted sections
Unlist sections even if `--top-level-division` is not defined.
2022-12-16 14:09:09 +01:00

56 lines
1.1 KiB
Markdown

# Unnumbered and unlisted headings in ConTeXt
```
% pandoc --to=context
# Preface {.unlisted -}
Nullam rutrum.
# Introduction
Nullam eu ante vel est convallis dignissim.
# Methods
Sed diam. Nulla posuere. Praesent fermentum tempor tellus. Nam
vestibulum accumsan nisl. Nam vestibulum accumsan nisl.
# References {-}
^D
\startsubject[title={Preface},reference={preface},number=no,incrementnumber=no]
Nullam rutrum.
\stopsubject
\startsectionlevel[title={Introduction},reference={introduction}]
Nullam eu ante vel est convallis dignissim.
\stopsectionlevel
\startsectionlevel[title={Methods},reference={methods}]
Sed diam. Nulla posuere. Praesent fermentum tempor tellus. Nam
vestibulum accumsan nisl. Nam vestibulum accumsan nisl.
\stopsectionlevel
\startsectionlevel[title={References},reference={references},number=no,incrementnumber=no]
\stopsectionlevel
```
## Semantic Headings with `--top-level-division`
```
% pandoc --to=context --top-level-division=chapter
# Bibliography {-}
None
^D
\startchapter[title={Bibliography},reference={bibliography},number=no,incrementnumber=no]
None
\stopchapter
```