require 'wparser/parse' module Inlines class Deleted < Parse def self.parse line @result = line.gsub!(/(?:(?!\\-)(^|.)-)(.+?)(?:(?!\\-)(.)-)/){|s| "#$1#$2#$3" } @result = line.gsub!(/\\-/, '-') super end end end