Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

remark-heading-shift

1.1.0 • Public • Published

remark-heading-shift Build Status Coverage Status

This plugin increments headings by shift. It guards against shifting too far backwards or forwards.

shift defaults to 1, it can be a positive or negative value, it will never shift a heading past 6 (because h6 is the smallest HTML heading) in case of a positive shift, or lower than 1 (h0 is not a valid HTML heading) in case of a negative shift.

For example, the following markdown:

## foo
#### bar
##### baz

Yields:

(shift=1)
### foo
##### bar
###### baz


(shift=3)
##### foo
###### bar
###### baz


(shift=-2)
# foo
## bar
### baz

License

MIT © Zeste de Savoir

Keywords

Install

npm i remark-heading-shift

DownloadsWeekly Downloads

12

Version

1.1.0

License

MIT

Unpacked Size

4.2 kB

Total Files

5

Last publish

Collaborators

  • avatar
  • avatar