Module: Jekyll::TableOfContentsFilter
- Defined in:
- lib/jekyll-toc.rb
Instance Method Summary collapse
Instance Method Details
#inject_anchors(html) ⇒ Object
19 20 21 22 |
# File 'lib/jekyll-toc.rb', line 19 def inject_anchors(html) return html unless toc_enabled? ::Jekyll::TableOfContents::Parser.new(html, toc_config).inject_anchors_into_html end |
#toc(html) ⇒ Object
24 25 26 27 |
# File 'lib/jekyll-toc.rb', line 24 def toc(html) return html unless toc_enabled? ::Jekyll::TableOfContents::Parser.new(html, toc_config).toc end |
#toc_only(html) ⇒ Object
14 15 16 17 |
# File 'lib/jekyll-toc.rb', line 14 def toc_only(html) return html unless toc_enabled? ::Jekyll::TableOfContents::Parser.new(html, toc_config).build_toc end |