-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
Line breaks inside tag #217
Comments
This is an interesting case that could have three possible desired outputs based on one's philosophy of how this library should work. You've already illustrated one case, where you expect the library to produce Markdown that, if converted back to HTML, produces results that are visually similar to users but with different HTML: <p><strong>Hello</strong></p>
<p><strong>World</strong></p> Another philosophy would be that this library should strive to produce Markdown like this: **Hello<br><br>World** Which converts back into virtually-identical HTML like this: <p><strong>Hello<br><br>World</strong</p> (That is the approach that I personally prefer) Lastly, there's a third philosophy that's kind of a hybrid of the two which would give Markdown like this: **Hello\
\
World** This produces: <p><strong>Hello<br />
<br />
world</strong></p> But I don't think that's something anyone would really want or expect :) Regardless, I agree that this is a bug. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This should probably be reopened. |
Version(s) affected
5.0.2
Description
Line breaks inside tags produce incorrect markdown
How to reproduce
HTML:
Output:
Expected output:
The text was updated successfully, but these errors were encountered: