-
Notifications
You must be signed in to change notification settings - Fork 862
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
Nested block level items break list without blank line after #845
Comments
Thanks. As the old issue was deleted, we had completely forgotten about it. |
I think I found another case of the same bug. - a
hmm
- b
- c <ul>
<li>
<p>a
hmmm</p>
</li>
<li><p>b</p></li>
<li>c</li>
</ul> Notice how the line |
@JustAPerson that is not related. In fact, that is correct behavior. Babelmark shows two common results, one which is defined in the Commonmark spec and one which follows the original rules. We are in the second group along with the reference implementation. Both agree that |
Hello My use case is the following:
|
This is clearly a bug as demonstrated by Babelmark, but the "fix" isn't immediately obvious. Consider the expected behavior of the following examples:
In that case, the second line of the paragraph does not need to be indented and that is valid. In fact, this is exactly the behavior we are seeing with the original example. But, shouldn't the hyphen at the start of the line change the behavior? Consider this example:
Again, we need to ignore the Commonmark implementations and focus on the reference implementation. Whatever fix we implement needs to maintain the current behavior of the above two examples, but somehow detect that an outdented line starts with a list item marker and treat it differently. The "workaround" it to add a blank line. Of course, that will wrap the second list item in a Given the above, finding a fix is not a high priority for me (note the |
I will fix this bug, just wait |
Another case that seems to be related. Here the unordered list tag is not generated and it is considered an ordered with paragraphs.
Output
|
@dmail00 that is not related. In fact, that is expected behavior. If however, you would prefer less surprising behavior, we have included the sane lists extension. |
@waylan Thanks for that info.
The code I posted sees extremely close to the example on the page yet generates an ordered list. Whilst it is no consequence to myself now that I know about that extension, that page also makes no mention of the p tags in the example for default behaviour. Thanks |
Hi. I did submit this issue previously (#750), but github banned me for no reason whatsoever. I'm reposting it so it won't get lost.
Basically, this:
Renders as:
Here is the screenshot of previous discussion just in case:
The text was updated successfully, but these errors were encountered: