-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
List lines with a comment before a markdown link are not properly rendered #902
Comments
It is what it should be, based on the CommonMark specification. Because it is treated as HTML block type 2: |
You have linked me a specification which this converter conforms to. Although I feel the decisions made by the specification violate the principle of least astonishment, it is probably not worth the effort to pursue this further. Thank you for your clear and concise answer. Would you happen to know if I can cleanly get the output desired? My new understanding is that newlines end both the "HTML block type 2" and the list item, and I have just finished converting all of my user-generated HTML to markdown as a more user-friendly (and easier to secure) alternative, with a few small issues like this one. (For example, I had to subclass Parsedown to support HTML comments in safe mode since I understand Markdown doesn't support comments, and the existing user HTML includes a number of valuable comments). |
Try escaping (untested): - \<!-- test --\>[foo](bar) |
Thank you - |
MRE:
Expected:
Got:
The text was updated successfully, but these errors were encountered: