Keep TableOfContentsFilter interface consistent with other filters by removing attr_reader. Also, reduce complexity by removing private methods and keep changes within #call. Finally, implement #build_toc to wrap result[:toc] in an unordered list.
Keep TableOfContentsFilter interface consistent with other filters by removing attr_reader. Also, reduce complexity by removing private methods and keep changes within #call. Finally, implement #build_toc to wrap result[:toc] in an unordered list.

moskvax/html-pipeline,moskvax/html-pipeline,kbrock/html-pipeline,github/html-pipeline,github/html-pipeline,terracatta/html-pipeline,charliesome/html-pipeline,terracatta/html-pipeline,gjtorikian/html-pipeline,gjtorikian/html-pipeline,kbrock/html-pipeline,jch/html-pipeline,jch/html-pipeline