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 7, 2024
1 parent 3b45491 commit 8639b74
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'^(1 + md.loose))
end
end

Expand Down

0 comments on commit 8639b74

Please sign in to comment.