-
Notifications
You must be signed in to change notification settings - Fork 63
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
Paragraphs in nested items are not formatted correctly #53
Comments
This might be actually a parser (blackfriday) error, not sure. I am taking CommonMark as the standard, with CommonMark, the input and expected are equivalent, the actual obviously not |
Oh, now I realized the "continues" is interpreted as a code block, NOT as paragraph. That's different from CommonMark, that interprets it as a paragraph. ...I think |
I really don't understand how is markdownfmt handling paragraphs inside lists. It makes no sense to me. This does not format as a paragraph inside list
This does format as a paragraph inside list, even when the only difference is one more space.
|
The previous comment seems to be a blackfriday issue (blackfriday does not parse correctly) The first issue seems to be markdownfmt issue (blackfriday parses the AST correctly, but markdownfmt does not print correctly) |
But maybe not. Hard to debug, either way it's confusing |
I think it's the same issue as #54 - that is, it behaves correctly and predictably if I use tabs and not spaces. But it does weird things when I use spaces. |
I have "solved" this by forking the repo here (I'm not in the committer list as I used work email or something back then) and rewriting it to a different markdown parser (blackfriday -> goldmark) https://github.com/Kunde21/markdownfmt which now died too. Closing this though; the real solution is to use a different markdown parser, as I did in the forked repo |
Input:
Expected:
Actual behaviour:
The text was updated successfully, but these errors were encountered: