From 703bf91dda9739e02a7f50e13882d6372ac781e4 Mon Sep 17 00:00:00 2001 From: Shawn Erquhart Date: Sun, 3 Dec 2017 12:52:52 -0500 Subject: [PATCH] fix slate mark rendering --- .../Markdown/MarkdownControl/VisualEditor/renderers.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/Widgets/Markdown/MarkdownControl/VisualEditor/renderers.js b/src/components/Widgets/Markdown/MarkdownControl/VisualEditor/renderers.js index 52a04427ae78..b1788463c71c 100644 --- a/src/components/Widgets/Markdown/MarkdownControl/VisualEditor/renderers.js +++ b/src/components/Widgets/Markdown/MarkdownControl/VisualEditor/renderers.js @@ -44,8 +44,7 @@ const Link = props => { const title = data.get('title'); const link = {props.children}; const result = !marks ? link : marks.reduce((acc, mark) => { - const MarkComponent = MARK_COMPONENTS[mark.type]; - return {acc}; + return renderMark({ mark, children: acc }); }, link); return result; }; @@ -57,8 +56,7 @@ const Image = props => { const alt = data.get('alt'); const image = {alt}; const result = !marks ? image : marks.reduce((acc, mark) => { - const MarkComponent = MARK_COMPONENTS[mark.type]; - return {acc}; + return renderMark({ mark, children: acc }); }, image); return result; };