From a2a0f73eb816917839eeffad9e487394ebd88443 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 22 Nov 2023 23:24:55 -0500 Subject: LaTeX writer: handle identifiers inside heading contents. `\phantomsection` can't be used in this case, so we need `\hypertarget`. Closes #9209. --- test/command/9209.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/command/9209.md (limited to 'test/command') diff --git a/test/command/9209.md b/test/command/9209.md new file mode 100644 index 000000000..3cdac7f17 --- /dev/null +++ b/test/command/9209.md @@ -0,0 +1,6 @@ +``` +% pandoc -t latex +## [Section]{#Section3} +^D +\subsection{\texorpdfstring{\protect\hypertarget{Section3}{}{Section}}{Section}}\label{section} +``` -- cgit v1.2.3