Generate a diff between two markdown files in markdown format
npm install markdown-diffnpm:
bash
$ npm install markdown-diff --save
`
Install with yarn:
` bash
$ yarn add markdown-diff --save
`
Usage
- Import
`js
import { markdownDiff } from 'markdown-diff';
`
- Usage
`js
const res = markdownDiff('oldStr', 'newStr');
`
Example
$3
`
Simple sentence and delete
Simple sentence with insert and
`
Simple sentence with insert and delete
$3
`
Before :
- ele one
- ele two
After :
- ele one
- ele two
- ele three
``