Module: Jekyll::TableOfContentsFilter
- Defined in:
- lib/jekyll-toc.rb
Instance Method Summary collapse
Instance Method Details
#inject_anchors(html) ⇒ Object
12 13 14 15 16 |
# File 'lib/jekyll-toc.rb', line 12 def inject_anchors(html) return html unless page['toc'] ::Jekyll::TableOfContents::Parser.new(html).inject_anchors_into_html end |
#toc(html) ⇒ Object
18 19 20 21 22 |
# File 'lib/jekyll-toc.rb', line 18 def toc(html) return html unless page['toc'] ::Jekyll::TableOfContents::Parser.new(html).toc end |
#toc_only(html) ⇒ Object
6 7 8 9 10 |
# File 'lib/jekyll-toc.rb', line 6 def toc_only(html) return html unless page['toc'] ::Jekyll::TableOfContents::Parser.new(html).build_toc end |