From f07bb38c37bb5eaff70d8c7dc919603221b7540f Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Fri, 18 May 2018 14:51:44 +0200 Subject: [PATCH] Fix image in markdown rendering --- components/rendering/src/markdown.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/rendering/src/markdown.rs b/components/rendering/src/markdown.rs index 78f6a5f..50ba80e 100644 --- a/components/rendering/src/markdown.rs +++ b/components/rendering/src/markdown.rs @@ -115,7 +115,7 @@ pub fn markdown_to_html(content: &str, context: &RenderContext) -> Result<(Strin ); } - Event::Start(Tag::Link(src, title)) + Event::Start(Tag::Image(src, title)) }, Event::Start(Tag::Link(link, title)) => { // A few situations here: