-
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
using a & in an image URL makes text2confl crash #183
Comments
@feliksik do you know if confluence itself is ready to process such content? |
Confluence is ready to process content with the escaped variant;
This is properly rendered a an image to the unescaped variant (and it's the only valid XML to represent an If the current implementation would not trip over the XML validation, Confluence actually accepts the invalid (unescaped) XML, and then converts it to store it as an escaped I just discovered that with an inline image (i.e., using
is converted to
|
@feliksik fixed and released as 0.17.0 |
The following also breaks with
I think we should conclude that the proper approach is not to to have macro-specific escapings, like we did before, but instead, only do a replacement of the I'm not entirely sure though - alternatively, we could also apply the mechanism used above for literal sections ( |
@feliksik please create separate issue for this finding. The challenge for asciidoc here is that some rendered stuff is escaped while other parts are not, so it's not possible just "normalize" whole output as some post processing step. Maybe i'm missing something, but this is my current understanding.. |
I think I might have been mistaken. It look like a href-attribute in an HTML anchor needs |
imagine the following asciidoc:
this results in the following Confluence XML:
And it makes the tool crash:
The cause is that
&
in an XML attribute must apparently be escaped. As we can see, this is done for the<a href
, but not for the<ri:url ri:value
attribute.The text was updated successfully, but these errors were encountered: