Skip to content

Latest commit

 

History

History
55 lines (46 loc) · 1.6 KB

README.md

File metadata and controls

55 lines (46 loc) · 1.6 KB

MDEditor

Using this extension you can render markdown in your div element. This is very fast and light weight. It is made for my one of the projects which is An Electron Chat app With Integration of Python.

GitHub language count GitHub top language GitHub code size in bytes GitHub

Pros

  • Single File.
  • Lightweight.
  • Easy to understand.
  • Fast as it uses regex.
  • Just link the MDEditor file to your project and start,

Docs

        let x = new MDEditor({
            div : ".txt0",
            editable : true,
            headings : true,
            quote : true,
            code: true,
            horizontalRule : true,
            links : true,
            images : true,
            ulList : true,
            mark : true
        });

        let y = new MDEditor({
            div : ".txt1",
            editable : true,
            headings : true,
            quote : true,
            code: true,
            horizontalRule : true,
            links : true,
            images : true,
            ulList : true,
            mark : true
        });

        document.querySelector("#btn1").onclick = x.render;
        document.querySelector("#btn2").onclick = y.render;