From b4e29c634c0d6c31c81b35a2f0fa92f31969e523 Mon Sep 17 00:00:00 2001 From: Olivier Lacan Date: Thu, 27 Apr 2017 11:14:32 -0700 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20render=20TOC=20for=20low-level?= =?UTF-8?q?=20headings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit That clutters up the navigation --- config.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.rb b/config.rb index 1c81fec..71ef6f2 100644 --- a/config.rb +++ b/config.rb @@ -126,9 +126,9 @@ class CustomMarkdownRenderer < Redcarpet::Render::HTML bottom = full_document.split("").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