From 58bf5bce25e75bae1fafe331ef30dc054fd48bfc Mon Sep 17 00:00:00 2001 From: "Sebastian J. Bronner" Date: Wed, 5 Jul 2017 12:05:58 +0200 Subject: [PATCH] Adjust initial_header_level for TOC The initial_header_level, set to 2, causes 2 problems: 1. When including a TOC, it will have an empty first level, which just looks really bad. 2. It differs from the way headings are handled in MarkDown. --- lib/github/commands/rest2html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/github/commands/rest2html b/lib/github/commands/rest2html index ed6507f5..021111b9 100755 --- a/lib/github/commands/rest2html +++ b/lib/github/commands/rest2html @@ -126,7 +126,7 @@ SETTINGS = { 'raw_enabled': True, 'strip_comments': True, 'doctitle_xform': True, - 'initial_header_level': 2, + 'initial_header_level': 1, 'report_level': 5, 'syntax_highlight': 'none', 'math_output': 'latex',