aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2025-09-09 08:42:19 +0200
committerJohn MacFarlane <[email protected]>2025-09-09 10:26:05 +0200
commit36bbdc667a72311257a4a8aedaa26b330cf01206 (patch)
tree85b7586b3f9292f63f9de6cf6b1f9dc3bf7c9982 /test/command
parent6ba552232a3637f2251c7fc97dac013467a21187 (diff)
T.P.Writers.Shared: add new function `removeLinks`.
The function converts links to spans. It is used, for example, to avoid nested links. The HTML writer used to put the description of nested links into small caps, but uses a simple *span* now.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/11124.md10
-rw-r--r--test/command/8738.md2
2 files changed, 11 insertions, 1 deletions
diff --git a/test/command/11124.md b/test/command/11124.md
new file mode 100644
index 000000000..0343d2650
--- /dev/null
+++ b/test/command/11124.md
@@ -0,0 +1,10 @@
+The heading is "unlinked" before adding it to the TOC.
+
+```
+% pandoc --to=latex
+<http://example.com/> {-}
+=========================
+^D
+\section*{\texorpdfstring{\url{http://example.com/}}{http://example.com/}}\label{httpexample.com}
+\addcontentsline{toc}{section}{{http://example.com/}}
+```
diff --git a/test/command/8738.md b/test/command/8738.md
index 4b8f251e7..ae128b8bd 100644
--- a/test/command/8738.md
+++ b/test/command/8738.md
@@ -2,5 +2,5 @@
% pandoc -f native -t mediawiki
[Link ("",[],[]) [Link ("",[],[]) [Str "test"] ("https://bar.example.com",""),Str "Test"] ("https://foo.example.com","")]
^D
-[https://foo.example.com testTest]
+[https://foo.example.com <span>test</span>Test]
```