aboutsummaryrefslogtreecommitdiff
path: root/test/command/6360.md
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2023-08-19 09:52:01 -0700
committerJohn MacFarlane <[email protected]>2023-08-19 09:52:01 -0700
commit70329edcd7afb7b3f8f015b13ab2e734c9e31d05 (patch)
tree34c8363de72e10ae737681f4cdbdb3f25b5f4a97 /test/command/6360.md
parent068fce4293eb139f54d4825e1dbdcaf35e34da03 (diff)
LaTeX writer: improve internal links and targets.
We no longer wrap section headings in a `\hypertarget`. This is unnecessary (hyperref creates an anchor based on the label) and it interferes with tagging. In addition, we now use `\hyperref` rather than `\hyperlink` for internal links. Currently `\hypertarget` is still being used for link anchors not on headings. Closes #8744. Thanks to @u-fischer.
Diffstat (limited to 'test/command/6360.md')
-rw-r--r--test/command/6360.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/command/6360.md b/test/command/6360.md
index 3988710bf..794307a83 100644
--- a/test/command/6360.md
+++ b/test/command/6360.md
@@ -2,5 +2,5 @@
% pandoc -f native -t latex --wrap=none
[Link ("test2",[],[]) [Str "link",Space,Str "to",Space,Str "text",Space,Str "test1"] ("#test1","")]
^D
-\protect\hypertarget{test2}{\protect\hyperlink{test1}{link to text test1}}
+\protect\hypertarget{test2}{\hyperref[test1]{link to text test1}}
```