Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit bc48d5f

Browse files
committed
fix(markdown-editor): render space for softbreak
Signed-off-by: Diana Lease <[email protected]>
1 parent 6267f37 commit bc48d5f

File tree

1 file changed

+1
-1
lines changed
  • packages/markdown-editor/src/lib/components

1 file changed

+1
-1
lines changed

packages/markdown-editor/src/lib/components/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const Element = (props) => {
2424
[H4]: () => (<Heading id={headingId} as="h4" {...attributes}>{children}</Heading>),
2525
[H5]: () => (<Heading id={headingId} as="h5" {...attributes}>{children}</Heading>),
2626
[H6]: () => (<Heading id={headingId} as="h6" {...attributes}>{children}</Heading>),
27-
[SOFTBREAK]: () => (<span className={SOFTBREAK} {...attributes}>{children}</span>),
27+
[SOFTBREAK]: () => (<span className={SOFTBREAK} {...attributes}> {children}</span>),
2828
[LINEBREAK]: () => (<br className={LINEBREAK} {...attributes} />),
2929
[LINK]: () => (<a {...attributes} href={data.href}>{children}</a>),
3030
[HTML_BLOCK]: () => (<pre className={HTML_BLOCK} {...attributes}>{children}</pre>),

0 commit comments

Comments
 (0)