diff --git a/config.rb b/config.rb index e6a2f34..e3ce498 100644 --- a/config.rb +++ b/config.rb @@ -58,12 +58,11 @@ before_render do |body, page, _, template_class| if current_page.data.table_of_contents && template_class == Middleman::Renderers::RedcarpetTemplate markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML_TOC.new) - toc = markdown.render(body).sub(/)/, '