Added more if-member-of checks; added simplemde support.

This commit is contained in:
Simon Brooke 2018-07-05 11:15:25 +01:00
parent ac070b537f
commit 66d4b2af4d
2 changed files with 274 additions and 143 deletions

View file

@ -0,0 +1,17 @@
var simplemde = new SimpleMDE({
autosave: {
enabled: true,
uniqueId: "Smeagol-{{page}}",
delay: 1000,
},
indentWithTabs: true,
insertTexts: {
horizontalRule: ["", "\n\n-----\n\n"],
image: ["![](http://", ")"],
link: ["[", "](http://)"],
table: ["", "\n\n| Column 1 | Column 2 | Column 3 |\n| -------- | -------- | -------- |\n| Text | Text | Text |\n\n"],
},
showIcons: ["code"], //, "table"], - sadly, markdown-clj does not support tables
spellChecker: true,
status: ["autosave", "lines", "words", "cursor"]
});