-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Markdown: store if list is loose or not in the List #26598
Conversation
Lists with multiple child blocks don't get the loose flag at the moment: julia> Markdown.md"""
- a
- b
a
- c
""".content
1-element Array{Any,1}:
Markdown.List(Any[Any[Markdown.Paragraph(Any["a"])], Any[Markdown.Paragraph(Any["b"]), Markdown.Paragraph(Any["a"])], Any[Markdown.Paragraph(Any["c"])]], -1, false) Is there anything specific holding back updating the print/show methods in Base to using the Would you consider it a fix for #21922? Also, just for reference, #22071. I think this is a good way to get the tight/loose lists in. Having |
Nothing preventing updating Base render methods but there is a need to thread a parent through every render call (like is done in Documenter) and getting Documenter output the correct HTML seems like the most important thing. I will fix and add a test for the bug you mentioned. The next thing to fix is probably the terminal renderer. |
stdlib/Markdown/src/Common/block.jl
Outdated
|
||
List(x::AbstractVector, b::Integer) = new(x, b) | ||
List(x::AbstractVector, b::Integer) = new(x, b, false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooooooh, these two constructors below now create the List
with the loose
containing uninitialized memory. #24943 strikes again
Looks like the mac builder is trying to build gcc, presumably because some network error. |
Punt on updating the renders in base but do it for the Documenter HTML renderer: JuliaDocs/Documenter.jl#685