Patches
Focused fixes and enhancements for Obsidian.
Edit tables and callouts, shape your reading space, and make diagrams and exported PDFs more useful.
Install · Website · User guide · Changelog · Report an issue

One note, a few improvements: a vault-image banner, a grouped itinerary, and code that fits its callout.
Development preview
The next update adds display-only section numbers. To try decimal numbering in one note on the development build, add patch-heading-numbering: decimal to its properties. Insert a section and the numbers update in both Live Preview and Reading View. Heading links, copied text and the Markdown file keep the original titles. The vault-wide switch starts off. Four numbering styles and examples

Consecutive Git edits now share a margin bar. On desktop, Line Width keeps 500 px between the sidebars as the window narrows. Diagrams that use Logos or Material Icon Theme icons will need the corresponding pack installed once from Patch Mermaid settings. Unreleased changes
New in 0.7.0
- Desktop vaults inside a Git working tree automatically show change markers in visible Markdown editors. Click a marker or run View Git diff for this note to compare the last commit with your current edits. Toggle Git change markers for this vault controls the gutter across the vault. Git diff guide
- Install the shared Simple Icons catalog through Patch Icons → Simple Icons → Install to choose brand logos offline for callouts, files and folders. The wider Callout appearance panel includes color swatches and uses the Obsidian interface font for type suggestions. Callout appearance
- The HTML table code font field suggests installed families on supported devices. Inline code font

Features
Find appearance and editing options under Settings → Patches, and Git commands in the desktop command palette.
- Callouts
- Edit, preview, and unwrap callouts. Set icons and colors by type, tint code backgrounds, and check folders for GitHub compatibility.
- Editor
- Active line marks the current line in the margin and highlights its line number. In a Git vault, consecutive additions or edits form a continuous colored bar beside it.
- Show H1–H6 labels beside the first line of each heading. Live Preview shares the extra heading space evenly above and below the text.
- Git on desktop
- Compare edits with the last commit, including unsaved text. Click a margin marker to open that change.
- HTML Tables
- Convert between Markdown and HTML tables. Edit merged cells and captions, and choose a font for inline code in HTML cells.
- Line Width
- Adjust the reading column globally or for a single note. In the development build, Line Width also keeps at least 500 px between the sidebars when resizing the desktop window.
- Math Format
- Patch Banner
- Add a note cover using an image, animation, or video from the vault. Set its width per note.
- Patch Icons
- Customize file and folder icons with Lucide icons, brand marks, and colors.
- Patch Mermaid
- Number and animate flowchart steps. Check every diagram in a note and jump to syntax errors.
- PDF Export
- Add PDF navigation with bookmarks and links to headings in the same note on desktop.
Installation
Requires Obsidian 1.15.0 or later. Patches is available in the Community Directory.
- Open Settings → Community plugins → Browse.
- Search for Patches, then select Install and Enable.
- Open Settings → Patches to choose your settings.
With Obsidian Sync Standard, install Patches on each device. Its bundled diagram renderer makes main.js larger than the plan’s 5 MB per-file limit.
In the development build, diagrams using logos: or material-icon-theme: icons need a download under Settings → Patches → Patch Mermaid → Install once per pack version. Published 0.7.0 includes both packs.
For manual installation, download main.js, manifest.json, and styles.css from the latest release. Put them in <vault>/.obsidian/plugins/patches/, reload Obsidian, and enable Patches.
Official releases contain the Community build with bundled Mermaid. To bundle a different version yourself, see Choose a Mermaid version. The optional Full branch adds remote Mermaid versions for manual source builds. Both use the same plugin ID; installing one replaces the other.
Try it
Enable Obsidian’s Settings → Editor → Readable line length, then give one note a wider column:
---
patch-line-width: 1100
---
Other notes keep their global width. See note properties, commands, and views and platforms for more examples and scope.
Network and privacy
The Community build runs its bundled Mermaid code locally. The development build downloads version-pinned diagram icon JSON from jsDelivr when you install a pack or repair a damaged copy. Installed packs load locally. In 0.7.0, selecting Install or Update for Simple Icons downloads the catalog and brand-color JSON from the same service. Opening the picker and searching installed icons work offline. Search terms, note contents and file names stay on the device. On desktop, Patches checks the vault and its parent directories for Git metadata to find the working tree. To compare a note with its last commit, it reads the local repository’s Git objects, which can reside outside the vault.
The optional Full build can download and execute Mermaid/ELK JavaScript from jsDelivr when Latest or Custom is selected, with access to Obsidian. The cover picker lists vault media locally, and Iconize import reads settings within the vault. Patches has no analytics or telemetry. See network and privacy for details.
Help
For questions or examples from your own notes, join the Patches forum discussion. For a reproducible problem, include your Obsidian and Patches versions, OS, theme, view mode, steps, and a small example or recording. Troubleshooting · Report a bug
Development
Use Node.js 22 or later:
npm ci
npm test
npm run build # community plugin → dist/community/
npm run docs:dev # local documentation preview
npm run docs:build # static site → site/.vitepress/dist/
Install the three plugin files from dist/community/ into the vault’s patches directory and reload the plugin. Integration checks deploy to dev-vault and create temporary fixtures; read integration testing first.
See AGENTS.md for feature design references, release documentation for the plugin workflow, and documentation maintenance for the website.
Design research covers an independent PDF preview tab and incremental bilingual translation. The PDF experiment is awaiting scope review, and translation implementation is deferred. PDF pagination research · Incremental translation research
Choose a Mermaid version
In a separate checkout of the Patches release you want to build, replace 12.1.0 below with your chosen exact version. The install saves it in that checkout’s package and lockfile.
npm install --save-exact mermaid@12.1.0
npm test
npm run build
npm run check:release
Official release testing covers the pinned version. Other versions can change diagram syntax, layout, or ELK compatibility. Before using the build in your own notes, run node scripts/test-mermaid.mjs /absolute/path/to/dev-vault in a prepared development vault and try your own diagrams. Settings → Patches → Patch Mermaid shows the version actually bundled.
Acknowledgments
Line Width follows the ideas of Editor Width Slider by MugishoMp (MIT), and Patch Icons follows Iconize by Florian Woelki (MIT). Their implementations are written for this plugin; the Iconize importer reads its settings format.
The desktop note comparison uses jsdiff (BSD-3-Clause).
Icons come from Lucide (ISC), Simple Icons (CC0 1.0), and the Iconify packs used by Mermaid. Brand icons are trademarks of their respective owners.
License
MIT.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.