pandoc/test/command/4832.md
John MacFarlane 6d14f53bd9 LaTeX reader: Allow % characters in URLs.
This affects `\href` and `\url`.  Closes #4832.
2018-08-12 16:46:48 -07:00

527 B

% 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","")]]