# File lib/maruku/input/rubypants.rb, line 192 def apply_one_rule(reg, subst, input) output = [] while first = input.shift if first.kind_of?(String) && (m = reg.match(first)) output.push m. pre_match if m. pre_match.size > 0 input.unshift m.post_match if m.post_match.size > 0 subst.reverse.each do |x| input.unshift( x == :one ? m[1] : md_entity(x.to_s) ) end else output.push first end end return output end