Skip to content

hiy/markdiff

 
 

Repository files navigation

Markdiff Build Status

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

About

Rendered Markdown differ.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 92.6%
  • HTML 7.4%