Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Hotfix/strip carriage returns #1

Merged
merged 12 commits into from
Nov 20, 2019
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ export const remarkToMarkdown = obj => {
.use(remarkToMarkdownPlugin, remarkToMarkdownPluginOpts)
.use(remarkAllowAllText)
.use(createRemarkShortcodeStringifier({ plugins: getEditorComponents() }))
.stringify(processedMdast);
.stringify(processedMdast)
.replace((/\r+/g, '\n'), processedMdast);

/**
* Return markdown with trailing whitespace removed.
Expand Down