sparksuite / simplemde-markdown-editor

A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://simplemde.com
MIT License
9.79k stars 1.12k forks source link

Can open the rendering interface? #709

Open qxkxzw opened 5 years ago

qxkxzw commented 5 years ago

I know the code below is workable, but some pages don't require an editor.

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

Usually we don't want to introduce another library. (reduced size)

qxkxzw commented 5 years ago

Or directly open "Marked" ?

F-loat commented 5 years ago

marked is a dependency of simplemde. no more size.

"dependencies": {
  "codemirror": "*",
  "codemirror-spell-checker": "*",
  "marked": "*"
}