react-rich-diff
React component to display a rich diff between two Markup-it documents.
Installation
$ npm install react-rich-diff --save
Usage
const React = ;const RichDiff = ;const MarkupIt = ;const markdown = ; const state = MarkupItState; const MyApp = React
CSS
react-rich-diff
creates HTML elements with classes diff-<kind>-<type
.
kind
can be one of block
, inline
or character
.
type
can be one of added
, removed
or modified
.