dmp-chapter-numbering

0.2.3 • Public • Published

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.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i dmp-chapter-numbering

    Weekly Downloads

    1

    Version

    0.2.3

    License

    MIT

    Last publish

    Collaborators

    • mauvm