Installation
The commit extension is included in theprosekit package.
Styling
Import commit styles to show change highlights:Usage
API reference
defineCommit()
Creates a commit extension that tracks and visualizes document changes.
How it works
The commit extension:- Tracks changes in the document using changesets
- Applies decorations to show additions and deletions
- Color codes changes by author or change type
- Preserves history of modifications
Use cases
Track edits
Show what changed in a document
Review changes
Review modifications before accepting
Change tracking
Microsoft Word-style change tracking
Audit trail
Maintain history of who changed what