ConTeXt writer: add support for unlisted, unnumbered headings

Closes: #8486
This commit is contained in:
Albert Krewinkel
2022-12-16 13:48:57 +01:00
parent 1698af8885
commit da2d7ce6f5
2 changed files with 53 additions and 12 deletions
+43
View File
@@ -0,0 +1,43 @@
# 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
\startsectionlevel[title={Preface},reference={preface},number=no,incrementnumber=no]
Nullam rutrum.
\stopsectionlevel
\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
```