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