diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index b42960e..cdc8414 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -675,7 +675,7 @@ module ApplicationHelper end TOC_RE = /

\{\{([<>]?)toc\}\}<\/p>/i unless const_defined?(:TOC_RE) - HEADING_RE = /]+)?>(.+?)<\/h(1|2|3)>/i unless const_defined?(:HEADING_RE) + HEADING_RE = /]+)?>(.+?)<\/h(1|2|3|4)>/i unless const_defined?(:HEADING_RE) # Headings and TOC # Adds ids and links to headings and renders the TOC if needed unless options[:headings] is set to false