aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-10-10 08:59:37 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-10-10 09:15:40 -0700
commit68b09a6d81b24b928b1629ecb3061a51a5ce2352 (patch)
tree0c8d43810efdc45c62d3a312a95ee29118a2d085 /test
parent2b1361e7381d45c47c4a53becab5b895b26f1dae (diff)
downloadpandoc-68b09a6d81b24b928b1629ecb3061a51a5ce2352.tar.gz
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.
Diffstat (limited to 'test')
-rw-r--r--test/command/1762.md18
1 files changed, 18 insertions, 0 deletions
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}}
+```