2.0.0 • Published 1 year ago

markdown-diff v2.0.0

Weekly downloads
940
License
MIT
Repository
github
Last release
1 year 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

1 year ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago