Simplemde-markdown-editor: Get preview HTML programmatically

Created on 5 Jan 2017  路  3Comments  路  Source: sparksuite/simplemde-markdown-editor

How to get the HTML which would be returned by the preview functionality?

question

All 3 comments

var simplemde = new SimpleMDE(...)
simplemde.markdown(simplemde.value())

simplemde.options.previewRender("This is *example* Markdown");

FUTURE USERS: simplemde.togglePreview();

Was this page helpful?
0 / 5 - 0 ratings

Related issues

christianmalek picture christianmalek  路  5Comments

jasonlewis picture jasonlewis  路  4Comments

keioka picture keioka  路  5Comments

liniu picture liniu  路  3Comments

abr4xas picture abr4xas  路  3Comments