From 8639b74b679096d17d4927696ad4eba3b9ef9c4d Mon Sep 17 00:00:00 2001 From: TEC Date: Tue, 31 Oct 2023 18:03:54 +0800 Subject: [PATCH] Variable spacing markdown list rendering The spacing between list items might as well represent whether the list is a tight or loose list. --- stdlib/Markdown/src/render/terminal/render.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/Markdown/src/render/terminal/render.jl b/stdlib/Markdown/src/render/terminal/render.jl index 69b705538d80a..1fb09918fbaf0 100644 --- a/stdlib/Markdown/src/render/terminal/render.jl +++ b/stdlib/Markdown/src/render/terminal/render.jl @@ -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