mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-06-29 02:40:16 +02:00
Update Markdown options to use GFM line breaks
This commit is contained in:
parent
06867c9ea9
commit
2a32e619a4
|
@ -587,7 +587,11 @@ SimpleMDE.toolbar = toolbar;
|
||||||
*/
|
*/
|
||||||
SimpleMDE.markdown = function(text) {
|
SimpleMDE.markdown = function(text) {
|
||||||
if(window.marked) {
|
if(window.marked) {
|
||||||
// use marked as markdown parser
|
// Update options
|
||||||
|
marked.setOptions({
|
||||||
|
breaks: true
|
||||||
|
});
|
||||||
|
|
||||||
return marked(text);
|
return marked(text);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue