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

https://github.com/zuck/medium-editor-autohr

An extension for medium editor which auto adds horizontal rules
https://github.com/zuck/medium-editor-autohr

Last synced: 2 months ago
JSON representation

An extension for medium editor which auto adds horizontal rules

Awesome Lists containing this project

README

        

# medium-editor-autohr

[![npm version](https://badge.fury.io/js/medium-editor-autohr.svg)](https://www.npmjs.com/package/medium-editor-autohr)

> An extension for [Medium Editor](https://github.com/yabwe/medium-editor) which auto adds horizontal rules.

![Demo](https://rawgit.com/zuck/medium-editor-autohr/master/art/screenshot.gif)

## How to install

```bash
$ npm install --save medium-editor-autohr
```

## Use the extension

```js
const AutoHR = require('medium-editor-autohr');

var editor = new MediumEditor('.editable', {
extensions: {
'autohr': new AutoHR()
}
});
```

Now, type `---` followed by `ENTER`: an `


` element will appear!

## License

Copyright (c) 2017 Emanuele Bertoldi

[MIT License](http://en.wikipedia.org/wiki/MIT_License)