Closed cryocaustik closed 4 years ago
after reading through the source, it looks like this can be done by calling the previewRender()
function:
let easymde = new EasyMeDE({ ... });
let converted = easymde.options.previewRender(easymde.value())
If this is a valid method, perhaps it could be added to the docs? I can submit a PR if you'd like.
It's even easier than that!
let easymde = new EasyMeDE({ ... });
let converted = easymde.markdown(easymde.value());
Is it possible to return the result of the default converter (marked) to allow further usage of the the converted HTML code?