-
Notifications
You must be signed in to change notification settings - Fork 2
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
Need to prevent character autosubstitution in URIs #808
Comments
Even worse:
is ending up as
|
This is an Asciidoctor issue, and has been for a decade: asciidoctor/asciidoctor#61 https://docs.asciidoctor.org/asciidoc/latest/macros/complex-urls/ are the recommended workarounds. We are not realising the workarounds are even necessary, because the text is already processed with substitutions by the time the parser reveals the link text. I'm going to preprocess the Asciidoctor text instead, disabling substitutions on identifiable links in the markup. |
I've implemented the preprocessing, which realises the Asciidoctor workaround. I now need to restrict its application so it is not done wherever macros are not expanded (passthrough, sourcecode, stem, document header, etc.) |
Also need to prevent link manipulation in attributes of blocks. |
http://www.example.com/...text[] is auto-substituting to a smart ellipse (which is non-ascii). Need to prevent all such substitutions in URIs.
The text was updated successfully, but these errors were encountered: