aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-03-18 16:53:36 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-03-18 16:53:36 -0700
commit6be8f4e953b6ba9a7af1b707ef3902f8a5b7b8e2 (patch)
tree9016c8253ac75ac894cf90594e31fd603faebf32 /test/command
parentc57649956d94f47f37c85b58be6978b2f989acae (diff)
downloadpandoc-6be8f4e953b6ba9a7af1b707ef3902f8a5b7b8e2.tar.gz
Improved fix to #5340 and added test.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/5340.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/command/5340.md b/test/command/5340.md
new file mode 100644
index 000000000..416f0bd6b
--- /dev/null
+++ b/test/command/5340.md
@@ -0,0 +1,14 @@
+```
+% pandoc -f html -t latex --wrap=preserve
+<a href="https://example.com/foo-bar">https://example.com/foo-bar</a>
+<a href="https://example.com/foo--bar">https://example.com/foo--bar</a>
+<a href="https://example.com/foo%2Dbar">https://example.com/foo-bar</a>
+<a href="https://example.com/foo%2D%2Dbar">https://example.com/foo--bar</a>
+<a href="https://example.com/foo%2D%2Dbar">https://example.com/foo%2D%2Dbar</a>
+^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}
+```