Skip to content

AndersGM/markdiff

 
 

Repository files navigation

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

About

Rendered Markdown differ.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 93.5%
  • HTML 6.5%