-
Notifications
You must be signed in to change notification settings - Fork 527
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
List items with multiple paragraphs do not work #111
Comments
I just noticed that according to http://daringfireball.net/projects/markdown/syntax#list, subsequent paragraphs should be indented by four spaces. The
Should this be changed to match John Gruber's markdown implementation? |
Good spotting, Jo. This has been in our internal issues list for a while. Do as they do, or do as they say? ...There are some tricky implementation issues when you change the soft limit for indentation from 4 spaces to 2, and you mix that with indented code blocks inside paragraphs. I'm looking into it. |
Any update on this? For reference, discount supports 2 spaces for paragraphs inside list items. |
I feel like the spec makes more sense than observed behavior, because when I write:
I do not expect the last item of the list to be rendered differently from the items before, and there is no visual hint to make me consider that all the contents after the list, at the same level of indentation as the whole list, will get inlined inside the last item of the list: API(...) Four functions are provided as arguments to the callback to interact with data and publish events
|
Would you like a pull request with a proposed solution? Unless there is something particular in the way? |
If you are able to propose a pull request, go ahead! 😃 Thanks! We will eventually put some comments to help you improve your patch if it's necessary. |
Thanks, I'll give it a try. |
@eric-brechemier Hm, that's an interesting point. I guess even though the spec says "Normal paragraphs should not be indented with spaces or tabs", in practice people end up doing it sometimes (like in your README) because it reads nicely. I haven't thought about the formal syntax rules much, but I'd expect the paragraph to be outside the list in this example (like you suggested): * List content
Paragraph but inside the list in this example: * List content
Paragraph |
@joliss exactly. I have added a new unit test to describe the expected behavior. |
Okay folks, @eric-brechemier has nicely fixed this problem in #317! Thank you everyone, this will be released in 3.1.0. |
With redcarpet 2.1.0, the following file produces different output than the reference implementation (John Gruber's markdown 1.0.1):
The text was updated successfully, but these errors were encountered: