simplemde-markdown-editor icon indicating copy to clipboard operation
simplemde-markdown-editor copied to clipboard

Selective markdown support

Open hwsamuel opened this issue 5 years ago • 1 comments

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
    });

hwsamuel avatar Jul 06 '19 19:07 hwsamuel

+1

the-darc avatar Aug 20 '20 18:08 the-darc