fix(widget-markdown): fix carriage return issue (#2899)

This commit is contained in:
Kyle 2019-11-28 16:27:58 +00:00 committed by Shawn Erquhart
parent caaa8b6db4
commit 1ff9db0915

View File

@ -135,7 +135,8 @@ export const remarkToMarkdown = obj => {
.use(remarkToMarkdownPlugin, remarkToMarkdownPluginOpts) .use(remarkToMarkdownPlugin, remarkToMarkdownPluginOpts)
.use(remarkAllowAllText) .use(remarkAllowAllText)
.use(createRemarkShortcodeStringifier({ plugins: getEditorComponents() })) .use(createRemarkShortcodeStringifier({ plugins: getEditorComponents() }))
.stringify(processedMdast); .stringify(processedMdast)
.replace(/\r?/g, '');
/** /**
* Return markdown with trailing whitespace removed. * Return markdown with trailing whitespace removed.