mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-10 11:27:06 +00:00
bad922a692
In 3.1.6.1 the `~` was handled properly (either literally or with `%E7`). This broke in 3.1.6.2, which used URI encoding in both cases and didn't escape the `\` before `%E7`. This patch restores the former behavior: `~` isn't escaped if it isn't escaped in the original URL, and if it is, a backslash is added before `%`. Closes #9043.
388 B
388 B
% pandoc -t latex
[**TreeTagger**](https://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/)
^D
\href{https://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/}{\textbf{TreeTagger}}
% pandoc -t latex
[**TreeTagger**](https://www.cis.uni-muenchen.de/%E7schmid/tools/TreeTagger/)
^D
\href{https://www.cis.uni-muenchen.de/\%E7schmid/tools/TreeTagger/}{\textbf{TreeTagger}}