Skip to content

A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.

License

Notifications You must be signed in to change notification settings

leetcode/simplemde-markdown-editor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleMDE - Markdown Editor (With Mentions)

Based on sparksuite/simplemde-markdown-editor

var md = new SimpleMDE(
{ 
    element: document.getElementById("MyID"),
    autoSuggest: 
    {
        mode: 'markdown',
        triggers: {
            '@': function(stringToTest) {
                return [
                    {
                        text: 'Thomas ',
                        displayText: 'Thomas'
                    },
                    {
                        text: 'Maria ',
                        displayText: 'Maria'
                    },
                    {
                        text: 'Peter ',
                        displayText: 'Peter'
                    }
                ];
            },
            '#': function(stringToTest) {
                return [
                    {
                        text: 'Two Sum ',
                        displayText: 'Two Sum'
                    },
                    {
                        text: '3Sum ',
                        displayText: '3Sum'
                    },
                    {
                        text: '4Sum ',
                        displayText: '4Sum'
                    }
                ];
            }
        },
    },
});

About

A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 89.2%
  • CSS 10.8%