Closed erossini closed 2 years ago
How can I get from EasyMDE the render HTML?
I have this code that raises a call to Blazor for every change.
easyMDE.codemirror.on("change", function () { dotNetObjectRef.invokeMethodAsync("UpdateInternalValue", easyMDE.value()); });
The value is the Markdown text. How can I get the rendered HTML code?
value
Thank you again, Enrico
The editor isn't really designed to output HTML, the markdown text is the content you want to save.
But if you really want to convert that to HTML you can use the marked package: marked.parse(easyMDE.value());
marked
marked.parse(easyMDE.value());
How can I get from EasyMDE the render HTML?
I have this code that raises a call to Blazor for every change.
The
value
is the Markdown text. How can I get the rendered HTML code?Thank you again, Enrico