simplemde-markdown-editor
simplemde-markdown-editor copied to clipboard
Selective markdown support
Is it possible to choose what markdown is allowed? For example, I would like to disable all headers related markdown such as #, ##, etc.
To clarify further, I already know how to hide markdown options in the toolbar (sample code below). But this doesn't prevent someone knowledgeable in markdown to still insert any supported markdown into the editor and get a preview.
var simplemde = new SimpleMDE({
element: document.getElementById("blogtext"),
toolbar: ["bold","italic","strikethrough","quote","|","ordered-list","unordered-list","|","link","image","|","preview","|","guide"],
forceSync: true,
status: false,
spellChecker: false
});
+1