summaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2022-12-16 13:46:47 +0100
committerAlbert Krewinkel <albert@zeitkraut.de>2022-12-16 13:48:57 +0100
commitda2d7ce6f5729bbd0fb34f28065882c98a5bcd1c (patch)
tree6314969fe203222ffda3911ecd0a597d6c93c33c /test/command
parent1698af8885d1d8a4e4ed9cdd03274c0e7446acd0 (diff)
ConTeXt writer: add support for unlisted, unnumbered headings
Closes: #8486
Diffstat (limited to 'test/command')
-rw-r--r--test/command/8486.md43
1 files changed, 43 insertions, 0 deletions
diff --git a/test/command/8486.md b/test/command/8486.md
new file mode 100644
index 000000000..c62f2909b
--- /dev/null
+++ b/test/command/8486.md
@@ -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
+```