summaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2022-09-27 22:14:43 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2022-09-28 08:34:50 -0700
commitbcf06e7f5e508f548f7060ba3e7281766aa2c1ea (patch)
treea1206ed92ff7964ffc836b8a9aa366f11b881ffb /test/command
parent2ff0b9a9efd959ea146d599379368ab00fae90cb (diff)
HTML writer: prevent `<a>` inside `<a>`.
If a link text contains a link, we replace it with a span. See #7585.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/html-writer-a-in-a.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/command/html-writer-a-in-a.md b/test/command/html-writer-a-in-a.md
new file mode 100644
index 000000000..219496d28
--- /dev/null
+++ b/test/command/html-writer-a-in-a.md
@@ -0,0 +1,7 @@
+a is not allowed inside a in HTML, so we remove links in link text:
+```
+% pandoc -f native -t html
+[ Link ("",[],[]) [Link ("",[],[]) [Str "Lo"] ("url2","") ] ("url","") ]
+^D
+<a href="url"><span>Lo</span></a>
+```