lib/table_of_contents/configuration.rb in jekyll-toc-0.12.0 vs lib/table_of_contents/configuration.rb in jekyll-toc-0.12.1

- old
+ new

@@ -2,11 +2,12 @@ module Jekyll module TableOfContents # jekyll-toc configuration class class Configuration - attr_accessor :toc_levels, :no_toc_section_class, :list_class, :sublist_class, :item_class, :item_prefix + attr_accessor :toc_levels, :no_toc_class, :no_toc_section_class, + :list_class, :sublist_class, :item_class, :item_prefix DEFAULT_CONFIG = { 'min_level' => 1, 'max_level' => 6, 'no_toc_section_class' => 'no_toc_section', @@ -18,9 +19,10 @@ def initialize(options) options = generate_option_hash(options) @toc_levels = options['min_level']..options['max_level'] + @no_toc_class = 'no_toc' @no_toc_section_class = options['no_toc_section_class'] @list_class = options['list_class'] @sublist_class = options['sublist_class'] @item_class = options['item_class'] @item_prefix = options['item_prefix']