We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
to_html
This markdown:
- one - two Next line
should have the same output as this:
but it doesn't.
The output of the first snippet is (as expected)
<ul> <li>one</li> <li>two</li> </ul> <p>Next line</p>
but the output of the second snippet is
<ul> <li> <p>one</p> </li> <li> <p>two</p> </li> </ul> <p>Next line</p>
which is not expected. The <p> tags should probably not be there.
<p>
Here's a failing test
#[test] fn two_blank_lines_inserts_paragraphs() { let out = to_html("- one\n- two\nNext line"); assert!(!out.contains("<p>one</p>")); // Passes let out = to_html("- one\n- two\n\nNext line"); assert!(!out.contains("<p>one</p>")); // Passes let out = to_html("- one\n- two\n\n\nNext line"); assert!(!out.contains("<p>one</p>")); // Fails 💥 }
The text was updated successfully, but these errors were encountered:
looks like the loose/tight/spread algorithm is taking the line endings after the list/last item into account, where it should only look internally.
Sorry, something went wrong.
No branches or pull requests
This markdown:
should have the same output as this:
but it doesn't.
The output of the first snippet is (as expected)
but the output of the second snippet is
which is not expected. The
<p>
tags should probably not be there.Here's a failing test
The text was updated successfully, but these errors were encountered: