mirror of
https://github.com/gohugoio/hugo.git
synced 2025-01-24 03:23:48 +00:00
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.
This commit is contained in:
parent
30e14cc316
commit
bfce30d859
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue