2.0.0 • Published 23 days ago

markdown-diff v2.0.0

Weekly downloads
940
License
MIT
Repository
github
Last release
23 days ago

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 --save

Install with yarn:

$ yarn add markdown-diff --save

Usage

  • Import
import { markdownDiff } from 'markdown-diff';
  • Usage
const res = markdownDiff('oldStr', 'newStr');

Example

Simple sentence

Simple sentence and delete
Simple sentence with insert and

Simple 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

License

MIT

2.0.0

23 days ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago