pandoc/test/command/3968.md
Albert Krewinkel e5c41f11de
ConTeXt writer: use "sectionlevel" environment for headings (#8106)
The document hierarchy is now conveyed using the
`\startsectionlevel`/`\stopsectionlevel` by default. This makes it easy
to include pandoc-generated snippets in documents at arbitrary levels.
The more semantic environments "chapter", "section", "subsection", etc.
are used if the `--top-level-division` command line parameter is set to
a non-default value.

Closes: #5539
2022-06-06 09:24:28 -07:00

213 B

% pandoc --top-level-division=chapter -t context
# Chapter

## Section
^D
\startchapter[title={Chapter},reference={chapter}]

\startsection[title={Section},reference={section}]

\stopsection

\stopchapter