Make README more clear

This commit is contained in:
Wes Cossick 2015-09-03 17:40:28 -05:00
parent d4e5b77a8f
commit 2737ab0808

View file

@ -81,7 +81,7 @@ simplemde.value();
- **enabled**: If set to `true`, autosave the text. Defaults to `false`.
- **unique_id**: You must set a unique identifier so that SimpleMDE can autosave. Something that separates this from other textareas.
- **delay**: Delay between saves, in milliseconds. Defaults to `10000` (10s).
- **previewRender**: A custom function to render the preview mode contents.
- **previewRender**: Custom function for parsing the plaintext Markdown and returning HTML. Used when user previews.
```JavaScript
var simplemde = new SimpleMDE({
@ -105,7 +105,7 @@ var simplemde = new SimpleMDE({
},
previewRender: function(simplemde, preview) {
var plainText = simplemde.value();
preview.innerHTML = customMarkdown(plainText); // Use a custom function for parsing Markdown
preview.innerHTML = customParser(plainText); // Use a custom function for parsing Markdown
}
});
```