summaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2023-08-09 12:06:35 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2023-08-09 12:09:41 -0700
commitcbb33fefb758250e745d9795ce97cc91e293626a (patch)
tree8c45eb18a5f98110d4641c86e1c28fa7efa3f8a6 /test/command
parentcc371a9485241db3e0101180432e2122d023a9bd (diff)
LaTeX writer: Improve escaping of URIs in href, url.
Closes #8992.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/5340.md6
-rw-r--r--test/command/8992.md6
2 files changed, 9 insertions, 3 deletions
diff --git a/test/command/5340.md b/test/command/5340.md
index 416f0bd6b..dbf9c1b9a 100644
--- a/test/command/5340.md
+++ b/test/command/5340.md
@@ -8,7 +8,7 @@
^D
\url{https://example.com/foo-bar}
\url{https://example.com/foo--bar}
-\url{https://example.com/foo\%2Dbar}
-\url{https://example.com/foo\%2D\%2Dbar}
-\url{https://example.com/foo\%2D\%2Dbar}
+\url{https://example.com/foo%2Dbar}
+\url{https://example.com/foo%2D%2Dbar}
+\url{https://example.com/foo%2D%2Dbar}
```
diff --git a/test/command/8992.md b/test/command/8992.md
new file mode 100644
index 000000000..0f2383d52
--- /dev/null
+++ b/test/command/8992.md
@@ -0,0 +1,6 @@
+```
+% pandoc -t latex
+[A theorem](https://en.wikipedia.org/wiki/Rice's_theorem).
+^D
+\href{https://en.wikipedia.org/wiki/Rice's_theorem}{A theorem}.
+```