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
- Host: GitHub
- URL: https://github.com/zuck/medium-editor-autohr
- Owner: zuck
- License: mit
- Created: 2017-08-31T20:57:27.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-22T04:31:05.000Z (over 7 years ago)
- Last Synced: 2025-03-25T01:41:27.506Z (3 months ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# medium-editor-autohr
[](https://www.npmjs.com/package/medium-editor-autohr)
> An extension for [Medium Editor](https://github.com/yabwe/medium-editor) which auto adds horizontal rules.

## 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)