pandoc-3.10: test/command/1762.md
```
% pandoc -t latex
# One {.unlisted}
# Two {.unnumbered}
# Three {.unlisted .unnumbered}
^D
\section{One}\label{one}
\section*{Two}\label{two}
\addcontentsline{toc}{section}{Two}
\section*{Three}\label{three}
```