diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-08-12 16:45:44 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-08-12 16:46:48 -0700 |
commit | 6d14f53bd96f123acb5d8030cf9402ddb2e41f01 (patch) | |
tree | 1535641fcf990d33526372dd03f86dfce27ba071 /test/command | |
parent | 81131ef5d19052948b4ac12a727e2ceef8a98186 (diff) | |
download | pandoc-6d14f53bd96f123acb5d8030cf9402ddb2e41f01.tar.gz |
LaTeX reader: Allow `%` characters in URLs.
This affects `\href` and `\url`. Closes #4832.
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/4832.md | 21 |
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","")]] +``` + |