Auto Numbered Headings

by Yu Zou
5
4
3
2
1
Score: 51/100

Description

Reviews

No reviews yet.

Stats

4
stars
3,525
downloads
0
forks
146
days
112
days
112
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
1
total issues
0
open issues
1
closed issues
27
commits

Latest Version

4 months ago

Changelog

Changes

  • Feat: Opt-in trailing dot on first heading level (new Trailing dot on first level setting)
  • Fix: Accept both dotted and normalized heading numbers (parser regression fix)
  • Fix: Single hierarchical counters pass — relative depth, zero-fill skipped levels
  • Feat: One-shot trigger — renumbering only fires when a dotted heading number is present
  • Feat: Simplified settings — hierarchical numbering only

README file from

Github

Auto Numbered Headings

Automatically numbers headings in your Markdown notes as you type.

Description

The Auto Numbered Headings plugin provides transparent, real-time heading renumbering. It ensures your document structure remains consistent by automatically updating heading numbers as you move, add, or delete sections. Because it modifies the actual document text, the numbering is preserved across all Markdown editors and exports.

Usage

Opt-in pattern

Add a number and a dot to any heading to start auto-numbering:

  • # 1. Introduction activates numbering for level 1 headings.
  • ## 1.1. Background activates numbering for level 2 headings.

Hierarchical numbering

The plugin supports multi-segment hierarchical numbering:

  • # 1. First Section
  • ## 1.1. Subsection
  • ### 1.1.1. Deep Section

Numbering behavior

Renumbering is triggered when a heading's number ends with a dot and a space (for example ### 2.3. Title). Typing that dot re-runs numbering across every numbered heading in the note.

  • Numbers are written without a trailing dot after renumbering (for example ### 2.3 Title). Both forms are recognized, so a heading that has already been renumbered is still managed.
  • Optionally, the shallowest heading level in the note can keep a trailing dot (for example # 1. Title). Enable this via Trailing dot on first level in the plugin settings.
  • Numbering is hierarchical and relative to the shallowest heading level in the note. If a level is skipped, the missing level is filled with a zero (for example an #### directly under an ## becomes 2.0.1).
  • Unnumbered headings such as ### Notes are left untouched and do not affect the count.

Settings

Access settings via Settings → Community plugins → Auto Numbered Headings.

  • Enable auto-numbering: Toggle the entire plugin on or off.
  • Trailing dot on first level: When on, the shallowest heading level in the note keeps a trailing dot (for example # 1. Title). When off (default), numbers are written without a trailing dot at any level.