Class: Qiita::Markdown::Greenmat::HTMLRenderer::Heading

Inherits:
AbstractHeading
  • Object
show all
Defined in:
lib/qiita/markdown/greenmat/html_renderer.rb

Instance Method Summary collapse

Instance Method Details

#incrementObject



43
44
45
# File 'lib/qiita/markdown/greenmat/html_renderer.rb', line 43

def increment
  # No-op
end

#to_sObject

For reference, C implementation of Redcarpet::Render::HTML#header is the following: github.com/vmg/redcarpet/blob/v3.2.3/ext/redcarpet/html.c#L281-L296



39
40
41
# File 'lib/qiita/markdown/greenmat/html_renderer.rb', line 39

def to_s
  "\n<h#{level}>#{body}</h#{level}>\n"
end