-
-
Notifications
You must be signed in to change notification settings - Fork 207
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
Header-like structures in content should be escaped #76
Comments
I don't understand why the last |
This was changed in version 0.24 of the spec. 'setext' headings couldn't span multiple lines before. Updated the expected output, thanks! |
I could fix this in a similar way I did for #77, but since there are other escaping issues waiting to be fixed, adding new rules to that same chunk of code will make it quite messy. I'm thinking of creating a separate function, like Since I'll be adding new functions to the ParagraphConverter class, should I also create a proper interface for it that would define this escaping functions? Is this necessary? Is there a better approach for this issue? Perhaps instead of escaping this characters at the Converter level, another solution could be to create a function inside the HtmlConverter Class, within the convertChildren function and before the convertToMarkdown call, to catch the string before the convertion and sanitize it there. Any thoughts @colinodell? |
I just went ahead and created a PR for this. It's #105 |
Fixed via #105 |
Input:
Actual:
Expected:
The text was updated successfully, but these errors were encountered: