Sha256: 6b0e7f0356f0612674972ad1f13d2bd63fcb82fc0d339d788812b28591571302
Contents?: true
Size: 486 Bytes
Versions: 2
Compression:
Stored size: 486 Bytes
Contents
require "markdiff/operations/base" module Markdiff module Operations class RemoveOperation < Base # @return [String] def inserted_node if target_node.name == "li" target_node["class"] = "removed" target_node.inner_html = %(<del class="del">#{target_node.inner_html}</del>) target_node else %(<del class="del">#{target_node}</del>) end end def priority 2 end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
markdiff-0.6.1 | lib/markdiff/operations/remove_operation.rb |
markdiff-0.6.0 | lib/markdiff/operations/remove_operation.rb |