Skip to content

Commit

Permalink
fix(markdown-editor): render space for softbreak
Browse files Browse the repository at this point in the history
Signed-off-by: Diana Lease <[email protected]>
  • Loading branch information
DianaLease committed May 26, 2020
1 parent 6267f37 commit bc48d5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/markdown-editor/src/lib/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Element = (props) => {
[H4]: () => (<Heading id={headingId} as="h4" {...attributes}>{children}</Heading>),
[H5]: () => (<Heading id={headingId} as="h5" {...attributes}>{children}</Heading>),
[H6]: () => (<Heading id={headingId} as="h6" {...attributes}>{children}</Heading>),
[SOFTBREAK]: () => (<span className={SOFTBREAK} {...attributes}>{children}</span>),
[SOFTBREAK]: () => (<span className={SOFTBREAK} {...attributes}> {children}</span>),
[LINEBREAK]: () => (<br className={LINEBREAK} {...attributes} />),
[LINK]: () => (<a {...attributes} href={data.href}>{children}</a>),
[HTML_BLOCK]: () => (<pre className={HTML_BLOCK} {...attributes}>{children}</pre>),
Expand Down

0 comments on commit bc48d5f

Please sign in to comment.