class NishisukeBlogSyntax::Formatter::SubHeadlineFormatter

Constants

PARSE_REGEXP
SUBSTITUTE_REGEXP

Private Instance Methods

regexp() click to toggle source
# File lib/nishisuke_blog_syntax/formatter/sub_headline_formatter.rb, line 11
def regexp
  SUBSTITUTE_REGEXP
end
substitute(matched) click to toggle source
# File lib/nishisuke_blog_syntax/formatter/sub_headline_formatter.rb, line 15
def substitute(matched)
  content_str = matched.match(PARSE_REGEXP)[1]
  "<h2>#{content_str}</h2>"
end