Markdown editor in JavaScript

install

 npm install simplemde

usage

<head>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
    <script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
</head>
<body>
    <div class="MyID"></div>
    <script>
        var simplemde = new SimpleMDE({ element: document.getElementById("MyID") });
    </script>
</body>

dark theme