Skip to content

Rendered Markdown differ.

License

Notifications You must be signed in to change notification settings

r7kamura/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

Sponsor this project

 

Contributors 4

  •  
  •  
  •  
  •