2.0.0 • Published 2 years ago
markdown-diff v2.0.0
markdown-diff
This module generates a difference between two markdown files while keeping renderable in a markdown format
WIP : feel free to open pull requests
Installation
Install with npm:
$ npm install markdown-diff --saveInstall with yarn:
$ yarn add markdown-diff --saveUsage
- Import
import { markdownDiff } from 'markdown-diff';- Usage
const res = markdownDiff('oldStr', 'newStr');Example
Simple sentence
Simple sentence and delete
Simple sentence with insert andSimple sentence with insert and delete
Lists
Before :
- ele one
- ele two
After :
- ele one
- ele two
- ele three- ele one
- ele two
- ele three
TODO
- Blockquote nested line
- Espace token
- Html token
- Hr token
- Tag token