summaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2023-08-31 08:28:40 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2023-08-31 08:28:40 -0700
commitbad922a69236e22b20d51c4ec0b90c5a6c038433 (patch)
tree8ca03e3ff59f5952cb1a608e157e5460d04e6363 /test/command
parent6666599af9fde970f5bb2435ec82eeae5b490415 (diff)
LaTeX writer: fix regression in escaping URLs.
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.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/9043.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/command/9043.md b/test/command/9043.md
new file mode 100644
index 000000000..cef799843
--- /dev/null
+++ b/test/command/9043.md
@@ -0,0 +1,13 @@
+```
+% 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}}
+```