0.2.3 • Published 9 years ago

dmp-chapter-numbering v0.2.3

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

Documark Chapter Numbering

npm version dependency status

Documark plugin for automatic chapter numbering.

Usage

  1. Add plugin to document configuration:

    plugins:
      - dmp-chapter-numbering

That's it! All h1, h2, and h3 elements will now be automatically numbered.

Add a no-number class to the header element (or one of its parents) to skip numbering.

Configuration

Optionally configure the numbering depth in your document configuration:

chapterNumbering:
  depth: 2    # Default: 3, min: 0 (no numbering), and max: 6

Now, only h1 and h2 elements will be numbered.