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