Skip to content

Commit c2d7340

Browse files
committed
Variable spacing markdown list rendering
The spacing between list items might as well represent whether the list is a tight or loose list.
1 parent 271f659 commit c2d7340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/Markdown/src/render/terminal/render.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function term(io::IO, md::List, columns)
7676
print(io, lstrip(line))
7777
l < length(lines) && println(io)
7878
end
79-
i < length(md.items) && println(io)
79+
i < length(md.items) && print(io, '\n'^(2 - md.loose))
8080
end
8181
end
8282

0 commit comments

Comments
 (0)