module Heading def parse line parse_line = line.sub(/^h([1-6])\.\s(.*)\n/){|s| "#$2\n" } return line if parse_line == nil parse_line end module_function :parse end