Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Better MD Diff

kamachengkamacheng82 downloads

Compare Markdown with Git HEAD using paired diffs, synchronized navigation, and confirmed per-hunk restoration.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates4

简体中文

Compare Markdown with Git HEAD (the latest commit) in Obsidian, highlight changed text, and restore individual changes after confirmation.

Obsidian demo: edit, inspect a deletion, restore one change, and undo

Recorded with Better MD Diff 0.4.0 in desktop Obsidian using a public-domain excerpt from Pride and Prejudice with demonstration edits. Demo details · 0.4.1 release notes.

0.4.1 fixes paragraph misalignment around repeated blank lines, including misleading deletion flags and the resulting per-change restoration scopes.

Installation

Requires desktop Obsidian 1.8.0+ and a local Git installation.

Open Settings → Community plugins → Browse, search for Better MD Diff, install it, and enable it. If already installed, check for updates under Community plugins and update Better MD Diff.

Usage

  1. Edit a Git-tracked Markdown note in Source mode or Live Preview.
  2. Click an editor flag or the Git diff ribbon icon to review changes. In the panel, red text is old content, green text is added content; stronger local backgrounds highlight changed words.
  3. Use ↑ / ↓ to visit individual changes. Click a group heading to select its first change, or a change's line-number button to select that item. Source navigation follows your settings.
  4. Click a restore arrow and confirm the preview. Press Ctrl/Cmd+Z in the source editor to undo.

Editor flags

Flag Meaning
Green +n n added lines in the current note
Blue ~n n modified lines in the current note
Red −n n deleted old lines, marked at their boundary—not as a deleted following line

Added/modified ranges have one flag at their start and a thin gutter rail. Source text stays untinted, and the fixed-width gutter avoids horizontal shifts during refreshes. Large counts keep their full value in tooltips. Rendered tables and folded blocks show the first contained change flag; use the panel for exact ranges. Flags appear in Source mode and Live Preview, not Reading view.

Changes versus reading groups

Change 1 / 3 counts independent edits, not the number of boxes. Nearby edits share context: two groups may contain 2 changes and 1 change. Their headings show the line range and contained change count. A contiguous multi-line replacement is one change; grouping never enlarges its restoration scope.

Text remains selectable and copies as original Markdown, without controls or line numbers. Settings retain font size, changed-word/whitespace markers, and source-following options; the ? button explains the display.

The plugin never stages, commits, or pushes. Restoration checks the current note and Git baseline before applying one undoable edit. Back up important notes first.

Scope

This release compares against local Git HEAD. Accepted-baseline review and GitLab comparison are not yet available.

License

MIT. The jsdiff dependency uses BSD-3-Clause; its full license is included in the build.

HealthExcellent
ReviewSatisfactory
About
Compare the open Markdown file with Git HEAD in Obsidian, showing paired old/new lines with +/-/~ markers and word-level highlights in the source editor or live preview. Copy clean original Markdown and restore individual change blocks back to HEAD while preserving editor undo and unsaved edits.
GitSidebarEditing
Details
Current version
0.4.1
Last updated
3 days ago
Created
3 weeks ago
Updates
4 releases
Downloads
82
Compatible with
Obsidian 1.8.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
kamachengkamacheng
GitHubkamacheng
  1. Community
  2. Plugins
  3. Git
  4. Better MD Diff

Related plugins

LanguageTool Integration

Advanced grammar and spell checking, powered by LanguageTool.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Tag Wrangler

Rename, merge, toggle, and search tags from the tag pane.

Thino

Quickly capture memos and display them in the sidebar with a heatmap. (Closed source)

Advanced Tables

Improved table navigation, formatting, and manipulation.

Git

Integrate Git version control with automatic backup and other advanced features.

Editing Toolbar

The Editing Toolbar is modified from cMenu, which provides more powerful customization settings and has many built-in editing commands to be a MS Word-like toolbar editing experience.

Flexplorer

Enhance the file explorer with custom sorting, pinning, and hiding.

Vertical Tabs

Offer an alternative view that displays open tabs vertically, allowing users to group and organize tabs for a better navigation experience.

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.