mirror of
https://github.com/olivierlacan/keep-a-changelog.git
synced 2025-07-29 16:54:12 +02:00
Don’t render TOC for low-level headings
That clutters up the navigation
This commit is contained in:
parent
5c40302726
commit
b4e29c634c
@ -126,9 +126,9 @@ class CustomMarkdownRenderer < Redcarpet::Render::HTML
|
||||
bottom = full_document.split("</pre>").last
|
||||
|
||||
@header = Redcarpet::Markdown.new(
|
||||
Redcarpet::Render::HTML_TOC.new(nesting_level: 4),
|
||||
Redcarpet::Render::HTML_TOC.new(nesting_level: 3),
|
||||
{ with_toc_data: true }
|
||||
).render(top + bottom).html_safe
|
||||
).render(top).html_safe
|
||||
|
||||
full_document
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user