Skip to content

Commit

Permalink
Variable spacing markdown list rendering
Browse files Browse the repository at this point in the history
The spacing between list items might as well represent whether the list
is a tight or loose list.
  • Loading branch information
tecosaur committed Feb 6, 2024
1 parent 271f659 commit c2d7340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/Markdown/src/render/terminal/render.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function term(io::IO, md::List, columns)
print(io, lstrip(line))
l < length(lines) && println(io)
end
i < length(md.items) && println(io)
i < length(md.items) && print(io, '\n'^(2 - md.loose))
end
end

Expand Down

0 comments on commit c2d7340

Please sign in to comment.