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