chunmde

0.2.0 • Public • Published

chunchunmaru-mde

npm NPM Version

Markdown editor based on codemirror6

Demo page

Features

  • Key bindings
  • Toolbars
  • Commands:
    • heading
    • italic <Ctrl+i>
    • bold <Ctrl+b>
    • quote <Ctrl+Shift+e>
    • code <Ctrl+e>
    • link <Ctrl+k>
    • Unordered list <Ctrl+Shift+8>

Usage

Browser

<!doctype html>
<html>
<head>
  <meta charset="utf-8"/>
  <title>Markdown editor in the browser</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/chunmde@x.y.z/dist/chunmde.min.css">
</head>
<body>
  <div id="editor-container"></div>
  <script src="https://cdn.jsdelivr.net/npm/chunmde@x.y.z/dist/chunmde.bundle.min.js"></script>
  <script>
    const editor = new ChunMDE('editor-container')
    const value = editor.getValue()
    console.log(value)
  </script>
</body>
</html>

Contribute

  • Fork the repository!
  • Clone your fork: git clone https://github.com/your-username/chunchunmaru-mde.git
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request :>

Package Sidebar

Install

npm i chunmde

Weekly Downloads

5

Version

0.2.0

License

MIT

Unpacked Size

2.21 MB

Total Files

21

Last publish

Collaborators

  • madey