diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2022-09-27 22:14:43 -0700 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2022-09-28 08:34:50 -0700 |
| commit | bcf06e7f5e508f548f7060ba3e7281766aa2c1ea (patch) | |
| tree | a1206ed92ff7964ffc836b8a9aa366f11b881ffb /test/command | |
| parent | 2ff0b9a9efd959ea146d599379368ab00fae90cb (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.md | 7 |
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> +``` |
