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