From 6d14f53bd96f123acb5d8030cf9402ddb2e41f01 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 12 Aug 2018 16:45:44 -0700 Subject: LaTeX reader: Allow `%` characters in URLs. This affects `\href` and `\url`. Closes #4832. --- test/command/4832.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/command/4832.md (limited to 'test') 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","")]] +``` + -- cgit v1.2.3