mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-11 11:57:16 +00:00
d21a9cd7f8
This improves the fix to #9017 in commit
7c4354646b
An alternative would be to avoid backslash escaping `#` and `%`
in URLs, and instead always add `fragile` to the slide environment.
611 B
611 B
% 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}