2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-30 13:24:28 -06:00

Update Markdown options to use GFM line breaks

This commit is contained in:
Wes Cossick 2015-08-31 23:29:02 -05:00
parent 06867c9ea9
commit 2a32e619a4

View File

@ -587,7 +587,11 @@ SimpleMDE.toolbar = toolbar;
*/
SimpleMDE.markdown = function(text) {
if(window.marked) {
// use marked as markdown parser
// Update options
marked.setOptions({
breaks: true
});
return marked(text);
}
};