Class: Qiita::Markdown::Greenmat::HTMLToCRenderer::HeadingAnchor
- Inherits:
-
AbstractHeading
- Object
- AbstractHeading
- Qiita::Markdown::Greenmat::HTMLToCRenderer::HeadingAnchor
- Defined in:
- lib/qiita/markdown/greenmat/html_toc_renderer.rb
Instance Method Summary collapse
Instance Method Details
#increment ⇒ Object
65 66 67 |
# File 'lib/qiita/markdown/greenmat/html_toc_renderer.rb', line 65 def increment counter[id] += 1 end |
#to_s ⇒ Object
61 62 63 |
# File 'lib/qiita/markdown/greenmat/html_toc_renderer.rb', line 61 def to_s "<a href=\"##{suffixed_id}\">#{body}</a>\n" end |