Overview of @pierre/diffs features
mainThe @pierre/diffs library is an open source diff and file rendering library built on Shiki. It is available as vanilla JavaScript and React components. Key features include:
- Diff file versions, patches, and arbitrary files
- Split or stacked layout
- Automatic adaptation to Shiki themes
- Support for light and dark mode
- Options for diff highlight styles, in-line highlighting, wrapping, line numbers, and more
- Support for custom fonts and
font-feature-settings - Flexible annotation framework for injecting comments and annotations
- Custom UI for accept/reject changes
- Line selection and highlighting