Class: Redcarpet::Render::HTMLwithTopic

Inherits:
HTMLwithSyntaxHighlight show all
Defined in:
lib/markdown-ruby-china.rb

Instance Method Summary collapse

Methods inherited from HTMLwithSyntaxHighlight

#autolink, #block_code, #initialize

Constructor Details

This class inherits a constructor from Redcarpet::Render::HTMLwithSyntaxHighlight

Instance Method Details

#header(text, header_level) ⇒ Object

Topic 里面,所有的 head 改为 h4 显示



68
69
70
# File 'lib/markdown-ruby-china.rb', line 68

def header(text, header_level)
  "<h4>#{text}</h4>"
end