Skip to content

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

License

Notifications You must be signed in to change notification settings

rrpff/catdown-title

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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;
});

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published