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

Commit 95763f9

Browse files
authored
Merge pull request #1 from morancj/hotfix/strip-carriage-returns
Hotfix/strip carriage returns
2 parents de9675b + c72729c commit 95763f9

File tree

1 file changed

+2
-1
lines changed
  • packages/netlify-cms-widget-markdown/src/serializers

1 file changed

+2
-1
lines changed

packages/netlify-cms-widget-markdown/src/serializers/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ export const remarkToMarkdown = obj => {
135135
.use(remarkToMarkdownPlugin, remarkToMarkdownPluginOpts)
136136
.use(remarkAllowAllText)
137137
.use(createRemarkShortcodeStringifier({ plugins: getEditorComponents() }))
138-
.stringify(processedMdast);
138+
.stringify(processedMdast)
139+
.replace((/\r+/g, '\n'), processedMdast);
139140

140141
/**
141142
* Return markdown with trailing whitespace removed.

0 commit comments

Comments
 (0)