Class: Qiita::Markdown::Greenmat::HTMLRenderer::HeadingWithAnchor
- Inherits:
-
AbstractHeading
- Object
- AbstractHeading
- Qiita::Markdown::Greenmat::HTMLRenderer::HeadingWithAnchor
- Defined in:
- lib/qiita/markdown/greenmat/html_renderer.rb
Instance Method Summary collapse
Instance Method Details
#increment ⇒ Object
53 54 55 |
# File 'lib/qiita/markdown/greenmat/html_renderer.rb', line 53 def increment counter[id] += 1 end |
#to_s ⇒ Object
49 50 51 |
# File 'lib/qiita/markdown/greenmat/html_renderer.rb', line 49 def to_s %(\n<h#{level} id="#{suffixed_id}">#{body}</h#{level}>\n) end |