pandoc-2.1.2: test/command/3968.md
```
% pandoc --top-level-division=chapter -t context
# Chapter
## Section
^D
\chapter[title={Chapter},reference={chapter}]
\section[title={Section},reference={section}]
```
```
% pandoc --top-level-division=chapter -t context
# Chapter
## Section
^D
\chapter[title={Chapter},reference={chapter}]
\section[title={Section},reference={section}]
```