pandoc/test/command/1762.md
John MacFarlane 68b09a6d81 Make some writers sensitive to 'unlisted' class on headings.
If this is present on a heading with the 'unnumbered' class,
the heading won't appear in the TOC.  This class has no
effect if 'unnumbered' is not also specified.

This affects HTML-based writers (including slide shows
and epub), LateX (including beamer), RTF, and PowerPoint.
Other writers do not yet support `unlisted`.

Closes #1762.
2019-10-10 09:15:40 -07:00

285 B

% 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}}