Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/madeyoga/chun-mde

Markdown editor based on codemirror 6
https://github.com/madeyoga/chun-mde

codemirror6 editor markdown markdown-editor

Last synced: 4 months ago
JSON representation

Markdown editor based on codemirror 6

Awesome Lists containing this project

README

        

# chunchunmaru-mde
[![](https://data.jsdelivr.com/v1/package/npm/chunmde/badge)](https://www.jsdelivr.com/package/npm/chunmde)
![npm](https://img.shields.io/npm/dt/chunmde?style=flat-square)
![NPM Version](https://img.shields.io/npm/v/chunmde)

Markdown editor based on [codemirror6](https://codemirror.net/)

## Features
- Key bindings
- Toolbars
- Commands:
- heading
- italic
- bold
- quote
- code
- link
- Unordered list
- Plugins:
- Image upload

## Usage

#### Browser
```html


Markdown editor in the browser




const { createChunEditor, createImageUploadPlugin } = Chun

const imageUploadPlugin = createImageUploadPlugin({
imageUploadUrl: "",
imageFormats: ["image/jpg", "image/jpeg", "image/gif", "image/png", "image/bmp", "image/webp"],
})

const editor = createChunEditor({
doc: initialContent.value,
lineWrapping: true,
indentWithTab: true,
toolbar: true,
})
.use(imageUploadPlugin)
.mount("editor-container")

console.log(editor.getValue())

```

## Contribute
- [Fork the repository](https://github.com/madeyoga/chunchunmaru-mde.git)!
- 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 :>