catdown-title

1.0.0 • Public • Published

catdown-title

Catdown plugin. Extracts the first h1 element on render, and emits a "title" event with its value on every change.

Usage

Install with npm.

$ npm install --save catdown-title

use it on your Catdown editor.

editor.use(require("catdown-title"));

Bind up.

editor.on("title", function(title){
    document.title = title;
});

Package Sidebar

Install

npm i catdown-title

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • zuren