require 'wparser/parse' module Inlines class Heading < Parse def self.parse line @result = line.sub(/^h([1-6])\.\s(.*)\n/){|s| "#$2\n"} super end end end