lib/jekyll-toc.rb in jekyll-toc-0.9.1 vs lib/jekyll-toc.rb in jekyll-toc-0.10.0

- old
+ new

@@ -14,10 +14,10 @@ # end # Jekyll Table of Contents filter plugin module TableOfContentsFilter def toc_only(html) - return html unless toc_enabled? + return '' unless toc_enabled? ::Jekyll::TableOfContents::Parser.new(html, toc_config).build_toc end def inject_anchors(html)