-
Notifications
You must be signed in to change notification settings - Fork 275
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
Why is " a unsafe character? #435
Comments
My apologies for taking a year to address this. You are right. This was probably inherited from original code. I will merge your PR for next release. |
Hi :) It's okay. Hm.... Seeing it now there is a downside to this solution as well... Links for example . If the String "bla" contained a ", it would break the generated HTML. So might be better to have a better workaround than that (I can look into this if you think that the solution above is not good enough) |
I had to back out the merge because the CommonMark spec tests require this behaviour. If you can please go ahead with a better workaround. For the next while I am going to be busy with updates to flexmark and my JetBrains Markdown Navigator plugin so will not have time to address this. |
It's okay :) However I cannot run the following test
We can also leave that for now, I have a workaround for my project :) And I guess I am off spec TBH |
Hi,
Regarding the following source snippets:
flexmark-java/flexmark-util-sequence/src/main/java/com/vladsch/flexmark/util/sequence/Escaping.java
Lines 43 to 45 in c0313d6
flexmark-java/flexmark-util-sequence/src/main/java/com/vladsch/flexmark/util/sequence/Escaping.java
Lines 64 to 78 in c0313d6
Why is the
"
character is considered unsafe in the following context?My usecase: I am processing Markdown, which is then processed using velocity. I rely on the fact that
"
is outputted as"
and not as"
.I am parsing the following line of markdown (which is a function call in velocity)
Expected:
Actual:
Sources that this is valid:
"
is not allowed in attribute, but says nothing about plain text)Workaround:
I am currently setting the
XML_SPECIAL_RE
field with my own replacer, which ignores the"
case.Proposed solution:
flexmark-java/flexmark-util-html/src/main/java/com/vladsch/flexmark/util/html/HtmlAppendableBase.java
Line 128 in c0313d6
Thanks for your time!
The text was updated successfully, but these errors were encountered: