jefago / tiny-markdown-editor

TinyMDE: A tiny, dependency-free embeddable HTML/JavaScript Markdown editor.
MIT License
110 stars 15 forks source link

Eye button to enable/disable Preview mode #45

Closed jfmdev closed 9 months ago

jfmdev commented 9 months ago

Does the editor includes a "Preview" button, to show the text rendered (and read-only)?

Or that must be done by adding a custom command?

jefago commented 9 months ago

It does not, and deliberately so – I did not want to include a proper markdown parser / renderer in this package in order to keep it "tiny". I would recommend using a library such as https://github.com/markedjs/marked for that purpose (and yeah, you could probably use a custom command to trigger that).

jfmdev commented 9 months ago

Crystal clear. Thanks!