All Projects → GitbookIO → react-rich-diff

GitbookIO / react-rich-diff

Licence: Apache-2.0 license
React component to render rich diff between two documents (Markdown, HTML)

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to react-rich-diff

Ace Diff
A diff/merging wrapper for Ace Editor built on google-diff-match-patch
Stars: ✭ 257 (+403.92%)
Mutual labels:  diff, rich-text-editor
RichTextEditor Swift
No description or website provided.
Stars: ✭ 31 (-39.22%)
Mutual labels:  rich-text-editor
bside
Github Content Management System
Stars: ✭ 22 (-56.86%)
Mutual labels:  rich-text-editor
fdiff
An OpenType table diff tool for fonts. Based on the fontTools TTX format.
Stars: ✭ 33 (-35.29%)
Mutual labels:  diff
dipa
dipa makes it easy to efficiently delta encode large Rust data structures.
Stars: ✭ 243 (+376.47%)
Mutual labels:  diff
gitdub
📤 A github WebHook that emails detailed diffs of your commits.
Stars: ✭ 25 (-50.98%)
Mutual labels:  diff
dify
A fast pixel-by-pixel image comparison tool in Rust
Stars: ✭ 41 (-19.61%)
Mutual labels:  diff
duff
Pure OCaml implementation of libXdiff (Rabin's fingerprint)
Stars: ✭ 20 (-60.78%)
Mutual labels:  diff
ngx-text-diff
A Text Diff component for Angular
Stars: ✭ 49 (-3.92%)
Mutual labels:  diff
diffhtml
Tools for generating diff output in HTML.
Stars: ✭ 23 (-54.9%)
Mutual labels:  diff
fast diff match patch
Python package for Google's diff-match-patch native C++ implementation.
Stars: ✭ 55 (+7.84%)
Mutual labels:  diff
react-trix-rte
React wrapper for Trix rich text editor created by Basecamp
Stars: ✭ 66 (+29.41%)
Mutual labels:  rich-text-editor
PredictEd
A rich edit control based text editor with text prediction and other smart features.
Stars: ✭ 32 (-37.25%)
Mutual labels:  rich-text-editor
iOS-HTMLTextEditor
A simple implementation of an HTML Editor using CKEditor in a web view.
Stars: ✭ 57 (+11.76%)
Mutual labels:  rich-text-editor
dif
'dif' is a Linux preprocessing front end to gvimdiff/meld/kompare
Stars: ✭ 18 (-64.71%)
Mutual labels:  diff
live-editor
Real-time collaboration editing service with integrated editor component.
Stars: ✭ 35 (-31.37%)
Mutual labels:  rich-text-editor
Diff.Net
A differencing utility for Window desktop written in C#.
Stars: ✭ 34 (-33.33%)
Mutual labels:  diff
tqsdk-js
期货行情/历史数据/交易 开发包
Stars: ✭ 52 (+1.96%)
Mutual labels:  diff
Odin
manage model revisions with ease
Stars: ✭ 60 (+17.65%)
Mutual labels:  diff
lightline-gitdiff
Show added, deleted and modified lines (`git diff`) in your statusline or lightline
Stars: ✭ 27 (-47.06%)
Mutual labels:  diff

react-rich-diff

Build Status NPM version

React component to display a rich diff between two Markup-it documents.

Installation

$ npm install react-rich-diff --save

Usage

const React = require('react');
const RichDiff = require('react-rich-diff');
const MarkupIt = require('markup-it');
const markdown = require('markup-it/lib/markdown');

const state = MarkupIt.State.create(markdown);

const MyApp = React.createClass({
    render() {
        const original = state.deserializeToDocument('Hello **World**');
        const modified = state.deserializeToDocument('Hello **World 2**');

        const state = RichDiff.State.create(original, modified);

        return (
            <RichDiff
                state={state}
                />
        )
    }
})

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].