mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-01 21:25:48 +00:00
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.
15 lines
611 B
Markdown
15 lines
611 B
Markdown
```
|
|
% 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}
|
|
```
|