react-md-editor icon indicating copy to clipboard operation
react-md-editor copied to clipboard

Save full html layout from MD editor using React

Open StasSpawn opened this issue 3 years ago • 1 comments

How can I save full html layout with all tags ( , ,

    ,
  • , etc) using React?

Because by default value of Markdown is String.

In JS we have cloneNode. But then is wont be a React application.

2022-07-18_131423

Here, i need to save layout like in the bottom example. But now if I take value of Markdown - it return me only simple String.

StasSpawn avatar Jul 18 '22 10:07 StasSpawn

@StasSpawn markdown handed over to react-markdown-preview for rendering

If you are converting to HTML, use markdown-to-html.

jaywcjlove avatar Jul 19 '22 14:07 jaywcjlove