medium-editor-autohr

0.3.0 • Public • Published

medium-editor-autohr

npm version

An extension for Medium Editor which auto adds horizontal rules.

Demo

How to install

$ npm install --save medium-editor-autohr

Use the extension

const AutoHR = require('medium-editor-autohr');
 
var editor = new MediumEditor('.editable', {
    extensions: {
        'autohr': new AutoHR()
    }
});

Now, type --- followed by ENTER: an <hr> element will appear!

License

Copyright (c) 2017 Emanuele Bertoldi

MIT License

Package Sidebar

Install

npm i medium-editor-autohr

Weekly Downloads

15

Version

0.3.0

License

MIT

Last publish

Collaborators

  • zuck