uiwjs / react-md-editor

A simple markdown editor with preview, implemented with React.js and TypeScript.
https://uiwjs.github.io/react-md-editor
MIT License
2.17k stars 156 forks source link

Formatting of paragraphs #66

Closed linneati closed 3 years ago

linneati commented 3 years ago

I have issues with formatting of the paragraphs when using the editor, when using

<div className="row">
  {edit ? <MDEditor value={value} onChange={setValue} /> : <MDEditor.Markdown source={value} />}
</div>
<div className="row">
  <ReactMarkdown plugins={[gfm]} children={value} />
</div>

the result looks like this which is not what you expect. I want to show the input to my editor as two paragraphs, but the editor doesn't seem to format the paragraphs so that it can be shown as paragraphs?

image

jaywcjlove commented 3 years ago

@linneagerhardsson Upgrade + @uiw/react-md-editor@2.0.0, support plugins.