You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When input markdown contains HTML tags with attributes that contain / character (URLs being the most obvious cause), library fails to parse it properly.
The issue here is that HtmlTag.ParseHelper does not correctly handle the / character in the attribute values, considering it, I guess, the end of tag, and then deciding that HTML is malformed and treats it as any other text.
When input markdown contains HTML tags with attributes that contain
/
character (URLs being the most obvious cause), library fails to parse it properly.Example input:
The output:
Expected output: HTML should pass through more or less untouched:
The issue here is that
HtmlTag.ParseHelper
does not correctly handle the/
character in the attribute values, considering it, I guess, the end of tag, and then deciding that HTML is malformed and treats it as any other text.The fix that worked for me is to replace:
markdowndeep/Backup/MarkdownDeep/HtmlTag.cs
Line 328 in 76577d2
line with:
But I am not sure it won't break something else.
The text was updated successfully, but these errors were encountered: