Skip to content

Commit d1f7843

Browse files
committed
fix(markdown): extra whitespace before and after pasted content #7364
1 parent 86d41d7 commit d1f7843

File tree

1 file changed

+1
-1
lines changed
  • packages/decap-cms-widget-markdown/src/MarkdownControl/plugins/html

1 file changed

+1
-1
lines changed

packages/decap-cms-widget-markdown/src/MarkdownControl/plugins/html/withHtml.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const INLINE_STYLES = {
3737

3838
function deserialize(el) {
3939
if (el.nodeType === 3) {
40-
return el.textContent;
40+
return el.textContent.trim();
4141
} else if (el.nodeType !== 1) {
4242
return null;
4343
} else if (el.nodeName === 'BR') {

0 commit comments

Comments
 (0)