mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
strange output for simple string #436
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @schmitch on GitHub (Feb 17, 2021).
hello, currently we have the following markdown string:
**C:\\**test\\we would expect an output of
<p><strong>C:\</strong>test\unfortunatly we get the following<p>**C:\**test\</p>, is there a reason why that is the case?@xoofx commented on GitHub (Feb 17, 2021):
Yes, you can see that all CommonMark implementations behave the same here
That's expected as per CommonMark specs for emphasis
The case here in is that on the right of
**C:\\**there istestwhich is not a whitespace or a punctuation.@schmitch commented on GitHub (Feb 17, 2021):
so is there a way to additional escape the string to satisfy the requirement without adding whitespace?
Edit: or is the only way something like this:
ToHtml(...).Replace("</strong> ", "</strong>");?@xoofx commented on GitHub (Feb 17, 2021):
Nope, as per the spec, punctuation or whitespace.
You would have to change it like that
**C:**\\test\\or write directly HTML inlines<strong>C:\\</strong>test\\@schmitch commented on GitHub (Feb 17, 2021):
thanks, I think that helped me!