Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/r7kamura/markdiff
Rendered Markdown differ.
https://github.com/r7kamura/markdiff
Last synced: 12 days ago
JSON representation
Rendered Markdown differ.
- Host: GitHub
- URL: https://github.com/r7kamura/markdiff
- Owner: r7kamura
- License: mit
- Created: 2015-12-03T04:32:11.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-10-12T04:21:22.000Z (about 1 year ago)
- Last Synced: 2024-10-06T03:56:06.988Z (about 1 month ago)
- Language: Ruby
- Homepage:
- Size: 130 KB
- Stars: 73
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
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)