From 68b09a6d81b24b928b1629ecb3061a51a5ce2352 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 10 Oct 2019 08:59:37 -0700 Subject: 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. --- test/command/1762.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/command/1762.md (limited to 'test/command') diff --git a/test/command/1762.md b/test/command/1762.md new file mode 100644 index 000000000..c0c34dc24 --- /dev/null +++ b/test/command/1762.md @@ -0,0 +1,18 @@ +``` +% 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}} +``` -- cgit v1.2.3