- viteJs
- coffeescript
- jQuery
To transform a textarea in an markdown editor you just have to create a new editorMD instance
<div class="container">
<textarea class="editor_custom"> </textarea>
</div>
$('.editor_custom').editorMD();
You can pass options as the second parameter to activate sync Scroll
$('.editor_custom').editorMD({
syncScroll: true
});
I created options for my needs, if you have some new ideas, PR are welcomed.
Before you can start you have to download you have to install npm dependencies, bower dependencies, then start gulp serve task
- npm install
- npm run dev
- npm run build
Then you can edit src/mdeditor.coffee to do some edits.