Skip to content
This repository has been archived by the owner on Nov 8, 2018. It is now read-only.

Remark plugin to change header levels

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

strugee/remark-rewrite-headers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

remark-rewrite-headers

remark plugin to change header levels (<h1>s to <h2>s, <h2>s to <h3>s, etc.)

Deprecated

Use remark-behead instead, which is more flexible and better-maintained.

Installation

npm install remark-rewrite-headers

Usage

var remark = require('remark');
var html = require('remark-html');
var rewriteHeaders = require('remark-rewrite-headers');

var processor = remark().use(rewriteHeaders).use(html);

// No output
processor.process([
    '# Some Markdown',
    'The above will become an `<h2>` althouth normally it would be an `<h1>`.',
	'## Some more Markdown',
	'Ditto with the above - this one\'ll become an `<h3>`.'
].join('\n'));

License

LGPL 3.0+

Author

AJ Jordan alex@strugee.net

About

Remark plugin to change header levels

Topics

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Packages

No packages published