aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-08-12 16:45:44 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-08-12 16:46:48 -0700
commit6d14f53bd96f123acb5d8030cf9402ddb2e41f01 (patch)
tree1535641fcf990d33526372dd03f86dfce27ba071 /test
parent81131ef5d19052948b4ac12a727e2ceef8a98186 (diff)
downloadpandoc-6d14f53bd96f123acb5d8030cf9402ddb2e41f01.tar.gz
LaTeX reader: Allow `%` characters in URLs.
This affects `\href` and `\url`. Closes #4832.
Diffstat (limited to 'test')
-rw-r--r--test/command/4832.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/command/4832.md b/test/command/4832.md
new file mode 100644
index 000000000..9ba40804c
--- /dev/null
+++ b/test/command/4832.md
@@ -0,0 +1,21 @@
+```
+% pandoc -f latex -t native
+\url{http://example.com/foo%20bar.htm}
+^D
+[Para [Link ("",[],[]) [Str "http://example.com/foo%20bar.htm"] ("http://example.com/foo%20bar.htm","")]]
+```
+
+```
+% pandoc -f latex -t native
+\url{http://example.com/foo{bar}.htm}
+^D
+[Para [Link ("",[],[]) [Str "http://example.com/foo{bar}.htm"] ("http://example.com/foo{bar}.htm","")]]
+```
+
+```
+% pandoc -f latex -t native
+\href{http://example.com/foo%20bar}{Foobar}
+^D
+[Para [Link ("",[],[]) [Str "Foobar"] ("http://example.com/foo%20bar","")]]
+```
+