Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URIs with percent signs (or translation) wrongly escaped since 3.1.6.2 #9043

Closed
teoric opened this issue Aug 31, 2023 · 0 comments
Closed

URIs with percent signs (or translation) wrongly escaped since 3.1.6.2 #9043

teoric opened this issue Aug 31, 2023 · 0 comments
Labels

Comments

@teoric
Copy link

teoric commented Aug 31, 2023

Explain the problem.
Include the exact command line you used and all inputs necessary to reproduce the issue. Please create as minimal an example as possible, to help the maintainers isolate the problem. Explain the output you received and how it differs from what you expected.

Since 3.1.6.2, URIs with tilde are not correctly translated to: The escape is missing before the percent.

WITH the bug (3.1.6.2)

Try with the altered URI handling (#8992);

echo '[**TreeTagger**](https://www.cis.uni-muenchen.de/%E7schmid/tools/TreeTagger/)' | pandoc-3.1.6.2 -t latex

or

echo '[**TreeTagger**](https://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/)' | pandoc-3.1.6.2 -t latex

, and the result for both is the following, with the escape missing, thus starting a comment after the third slash, which breaks the command:

\href{https://www.cis.uni-muenchen.de/%E7schmid/tools/TreeTagger/}{\textbf{TreeTagger}}

BEFORE the bug (3.1.6.1)

For comparison, try:

echo '[**TreeTagger**](https://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/)' | pandoc-3.1.6.1 -t latex

which results in an untranslated tilde (works with LaTeX):

\href{https://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/}{\textbf{TreeTagger}}

or try with the percent-encoded version:

echo '[**TreeTagger**](https://www.cis.uni-muenchen.de/%E7schmid/tools/TreeTagger/)' | pandoc-3.1.6.1 -t latex

, which results in an escaped percent sign and thus avoids starting a comment (works with LaTeX):

\href{https://www.cis.uni-muenchen.de/\%E7schmid/tools/TreeTagger/}{\textbf{TreeTagger}}

Pandoc version?
What version of pandoc are you using, on what OS? (If it's not the latest release, please try with the latest release before reporting the issue.)

3.1.6.2 on Linux (AMD64)

@teoric teoric added the bug label Aug 31, 2023
@jgm jgm closed this as completed in bad922a Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant