diff options
author | Frank Braun <[email protected]> | 2017-06-27 10:26:33 +0000 |
---|---|---|
committer | Anthony Fok <[email protected]> | 2017-06-27 04:26:33 -0600 |
commit | bfce30d85972c27c27e8a2caac9db6315f813298 (patch) | |
tree | 837c8ad257ab396d15566e8bfe3722f473eec09c | |
parent | 30e14cc31678ddc204b082ab362f86b6b8063881 (diff) | |
download | hugo-bfce30d85972c27c27e8a2caac9db6315f813298.tar.gz hugo-bfce30d85972c27c27e8a2caac9db6315f813298.zip |
helpers: add --initial-header-level=2 to rst2html (#3528)
reStructuredText doesn't have explicit section levels but sets them in
the order of appearance. Since level 1 is already set from the title in
the front matter it makes more sense to start with level 2 when
converting with rst2html.
-rw-r--r-- | helpers/content.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/content.go b/helpers/content.go index bb547de25..4a96c5014 100644 --- a/helpers/content.go +++ b/helpers/content.go @@ -637,7 +637,7 @@ func getRstContent(ctx *RenderingContext) []byte { } jww.INFO.Println("Rendering", ctx.DocumentName, "with", path, "...") - cmd := exec.Command(python, path, "--leave-comments") + cmd := exec.Command(python, path, "--leave-comments", "--initial-header-level=2") cmd.Stdin = bytes.NewReader(cleanContent) var out, cmderr bytes.Buffer cmd.Stdout = &out |