Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 906 Bytes

README.md

File metadata and controls

38 lines (25 loc) · 906 Bytes

markdiff.js

markdiff CI

JavaScript port of r7kamura/markdiff.

Install

Please login to GitHub Packages referring to the following URL.
https://help.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages#authenticating-to-github-packages

$ npm login --registry=https://npm.pkg.github.com

In the same directory as your package.json file, create or edit an .npmrc file.

@eimeeinc:registry=https://npm.pkg.github.com/EimeeInc

Install:muscle:

$ npm install @eimeeinc/markdiff

Usage

import markdiff from "@eimeeinc/markdiff"

// Pass Markdown edit histories
const diff = markdiff("<p>a</p>", "<p>b</p>")

// You get the HTML diff between the two points.
console.log(diff)