Skip to content

Commit 210ba04

Browse files
committed
Make draw in Markdown extendable
1 parent 1690688 commit 210ba04

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/widgets/markdown.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ function draw(p::Markdown.Paragraph, area::Rect, buf::Buffer)
6969
l = length(c.text[1])
7070
set(buf, col, row, c.text[1], Crayon(italics = true))
7171
col += l
72+
elseif typeof(c) == Markdown.Image
73+
draw(c, area, buf)
7274
end
7375
end
7476

src/widgets/widgets.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
draw(widget, area, buffer) = nothing

0 commit comments

Comments
 (0)