Project

markdiff

0.03
No release in over a year
Rendered Markdown differ.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Markdiff

test Gem Version

Rendered Markdown differ.

Usage

require "markdiff"

differ = Markdiff::Differ.new
node = differ.render("<p>a</p>", "<p>b</p>")
node.to_html #=> '<div class="changed"><p><del>a</del><ins>b</ins></p></div>'

See spec/markdiff/differ_spec.rb for more examples.

Demo

Execute ruby example/app.rb to run demo app.

demo