Adds paragraph numbers to the editor gutter, replacing line numbers with something more useful for long-form prose writing.
A paragraph is a contiguous block of non-blank content lines. The plugin numbers each paragraph sequentially in the gutter, skipping:
- YAML frontmatter
- Headings (
# ...) - Code fences (``` or ~~~)
- Horizontal rules (
---,***,___) - Blank lines
Only the first line of each paragraph shows a number. Continuation lines within the same paragraph are left blank.
- Install BRAT if you haven't already
- Open BRAT settings → Add Beta Plugin
- Enter:
kvarnelis/obsidian-paragraph-numbers
- Download
main.js,manifest.json, andstyles.cssfrom the latest release - Create a folder:
.obsidian/plugins/paragraph-numbers/ - Place the three files inside it
- Restart Obsidian and enable the plugin in Settings → Community Plugins
For the cleanest writing view, go to Settings → Editor and:
- Turn off Line numbers (the built-in line numbers are redundant with paragraph numbers)
- Set Properties in document to "Hidden" (removes the YAML frontmatter panel)
Run Toggle paragraph numbers from the Command Palette to show or hide the gutter without disabling the plugin. The preference is retained for the vault.
Uses CodeMirror 6's gutter API (StateField + custom gutter + GutterMarker). No build step — the plugin is a single plain JavaScript file.
MIT
