editor icon indicating copy to clipboard operation
editor copied to clipboard

Line breaks passed through markdown prop are not preseved

Open nobu-sh opened this issue 7 months ago • 8 comments

<ForwardRefEditor markdown={`hello\n\nworld`} />

When editing in the editor line breaks are inserted in the dom as <p><br /></p> but when the editor first renders with markdown passed to markdown prop newlines are omitted.

nobu-sh avatar Dec 15 '23 04:12 nobu-sh