You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>not a list * list item 1 * list item 2 * list item 3</p>
Which suggests that the problem is that we are not properly accounting for newlines as being whitespace somewhere in an inline pattern.
Note that Commonmark differs from Markdown here in that it recognizes the list without the blank line. In fact, the Commonmark spec acknowledges that this behavior is different from Markdown. This issue is not about that. See #338 for that discussion. Please keep this discussion on point.
All whitespace characters should be treated the same by inline patterns.
Previoulsy, emphasis patterns were only accounting for spaces, but not
other whitepsace characters such as newlines. FixesPython-Markdown#783.
All whitespace characters should be treated the same by inline patterns.
Previoulsy, emphasis patterns were only accounting for spaces, but not
other whitepsace characters such as newlines. Fixes#783.
The following input is correctly not a list as there is no blank line between the first and second lines:
However, now that we have list-like syntax, the inline patterns make a mess of it and we get this output:
It seems that
* list item 1\n*
is incorrectly being identified asem
. However, the reference implementation renders that as:See Babelmark for comparison.
If we remove the newlines:
Then things work as they should (see Babelmark):
Which suggests that the problem is that we are not properly accounting for newlines as being whitespace somewhere in an inline pattern.
Note that Commonmark differs from Markdown here in that it recognizes the list without the blank line. In fact, the Commonmark spec acknowledges that this behavior is different from Markdown. This issue is not about that. See #338 for that discussion. Please keep this discussion on point.
Finally, this issue was first reported on StackOverflow by user Minato.
The text was updated successfully, but these errors were encountered: