-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
LaTeX writer: URLs are not escaped #2377
Comments
If I'm understanding the code correctly, am I correct in thinking that the fix for this is as simple as adding |
@adunning I think you are probably right. It would be good, though, to figure out where else this might be needed -- i.e. which characters that are normally escaped should not be escaped in URL contexts. |
It looks as if it's the list of 'unwise' characters that are not handled within a URL. The question, then, might be whether it would be best to escape these characters in all outputs (which has come up before in #1640). |
Taking the example from #1640, this also results in an incorrect PDF: pandoc -F pandoc-citeproc -o test.pdf << EOT
---
references:
- id: test
DOI: 10.1002/(sici)1097-0185(19990415)257:2<50::aid-ar4>3.3.co;2-n
...
@test
EOT |
Closed by 1e8a25a |
Thanks for taking care of this! |
Under pandoc 1.15.0.6, some unusual but valid characters in URLs are not escaped by the LaTeX writer. For instance, this produces a broken link:
It appears in the PDF as
http://www.digizeitschriften.de/dms/resolveppn/?PID=PPN345858530_0013\T1\textbar{}log48
.Thread: https://groups.google.com/forum/#!msg/pandoc-discuss/E489etyaKgI/cUFuyicXCAAJ (as far as I can tell, no issue was generated from this).
The text was updated successfully, but these errors were encountered: