Class: Qiita::Markdown::Greenmat::HTMLRenderer::Heading
- Inherits:
-
AbstractHeading
- Object
- AbstractHeading
- Qiita::Markdown::Greenmat::HTMLRenderer::Heading
- Defined in:
- lib/qiita/markdown/greenmat/html_renderer.rb
Instance Method Summary collapse
- #increment ⇒ Object
-
#to_s ⇒ Object
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.
Instance Method Details
#increment ⇒ Object
43 44 45 |
# File 'lib/qiita/markdown/greenmat/html_renderer.rb', line 43 def increment # No-op end |
#to_s ⇒ Object
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 |