Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/r7kamura/markdiff

Rendered Markdown differ.
https://github.com/r7kamura/markdiff

Last synced: 12 days ago
JSON representation

Rendered Markdown differ.

Awesome Lists containing this project

README

        

# Markdiff

[![test](https://github.com/r7kamura/markdiff/actions/workflows/test.yml/badge.svg)](https://github.com/r7kamura/markdiff/actions/workflows/test.yml)
[![Gem Version](https://badge.fury.io/rb/markdiff.svg)](https://rubygems.org/gems/markdiff)

Rendered Markdown differ.

## Usage
```rb
require "markdiff"

differ = Markdiff::Differ.new
node = differ.render("

a

", "

b

")
node.to_html #=> '

ab

'
```

See [spec/markdiff/differ_spec.rb](spec/markdiff/differ_spec.rb) for more examples.

### Demo
Execute `ruby example/app.rb` to run [demo app](example/app.rb).

![demo](images/demo.png)