Compare two open Obsidian notes (split view) and highlight line-level differences.
- Open exactly 2 markdown panes (vertical or horizontal split).
- Run the command
Compare two files. - To remove highlighting, run
Clear compare highlights. - To keep highlights updated while you edit, run
Toggle live compare. - (Desktop) You can also toggle live compare from the status bar (scale icon).
- (Desktop) The right sidebar panel lists differences and lets you jump between them.
Notes:
- Both panes must be in Source mode or Live Preview (Reading view can’t be decorated).
- It highlights changed/added/removed lines and also the exact changed characters for modified lines.
Copy main.js, manifest.json, and styles.css into:
<Vault>/.obsidian/plugins/markdown-compare/
Then turn this plugin on in the Community Plugins list.
