def toc_only(html)
      Jekyll.logger.warn 'Deprecation: toc_only filter is deprecated and will be remove in jekyll-toc v1.0.',
                         'Use `{% toc %}` instead of `{{ content | toc_only }}`.'
      return '' unless toc_enabled?

      TableOfContents::Parser.new(html, toc_config).build_toc
    end
def toc_only(html)
      Jekyll.logger.warn 'Deprecation: toc_only filter is deprecated and will be remove in jekyll-toc v1.0.',
                         'Use `{% toc %}` instead of `{{ content | toc_only }}`.'
      return '' unless toc_enabled?

      TableOfContents::Parser.new(html, toc_config).build_toc
    end
Deprecated method. Removed in v1.0.