We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c87c918 commit d938cb5Copy full SHA for d938cb5
src/widgets/markdown.jl
@@ -36,9 +36,15 @@ end
36
37
function draw(l::Markdown.List, area::Rect, buf::Buffer)
38
39
+ _s = String[]
40
+ for item in l.items
41
+ iob = IOBuffer()
42
+ print(iob, item[1])
43
+ push!(_s, String(take!(iob)))
44
+ end
45
for (i, item) in enumerate(l.items)
46
item_area = Rect(
- left(area),
47
+ left(area) + maximum(length.(_s)) ÷ 2,
48
top(area) + (i - 1) * (height(area) ÷ length(l.items)),
49
width(area),
50
height(area) ÷ length(l.items)
0 commit comments