-
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
[Deprecation][v1.8.0-beta-7] List broken when used new line #714
Comments
The result given by 1.7.3 isn't correct—the line with "b" needs to be indented by one more space so that it matches up with the original list content's indentation. |
@aidantwoods, you are wrong. I just rechecked it in https://parsedown.org/demo and I switched to Parsedown v1.7.3, and it works as I mentioned above. And Markdown PHP 1.3 results
|
The result given by Parsedown 1.7.3 isn't correct (not for). I agree that Parsedown gives the result you mentioned, however it is this result which is incorrect. The CommonMark reference parser indeed agrees with the new (1.8.x-beta) result, giving: <ol>
<li>a</li>
</ol>
<p>b</p> To see why this is the case, see the spec description under example 224, which says:
|
@aidantwoods, having space/s or not, 1.8.0-beta-7 currently fails on it and doesn't wrap inside Isn't there a bug in commonmark.js, it doesn't support multiple paragraphs inside lists, it doesn't depend how many spaces I add? |
@aidantwoods, sorry, You are right! With right spacing, spec wraps correctly https://spec.commonmark.org/dingus/?text=1.%20a%0A%20%20%20%0A%20%20%20b
results
Meaning Parsedown and Markdown PHP doesn't yet fallow the latest spec. |
Or are you saying that 1.8.x-beta fallows the latest spec? |
1.8.x-beta follows spec here as far as I can tell, did you have an example where it differs from CommonMark? |
Sorry @aidantwoods, it was my mistake. I got confused by latest stable vs beta resulting different results. 1.8.x is resulting fine based on latest spec. Any ETA for 1.8.x release as stable? |
And thanks @aidantwoods for so quick responses! |
No worries :)
I ended up deciding not to release 1.8.x as a minor upgrade due to quite a few internal changes that might break extensions (context: #601 (comment)). If you're not using any extensions then I'd just go ahead and use 1.8.x for now (it contains quite a few bug fixes over 1.7.x). I'm also holding off releasing it as a major upgrade since there are a couple things in the public API that, given the opportunity to change, will make things a lot better. There's quite a bit of progress towards |
Latest Parsedown beta version 1.8.0-beta-7, breaks list markdown containing new line like
turning to
While it works fine in latest stable v1.7.3, returning
The text was updated successfully, but these errors were encountered: