Fixed toc depth in RST writer.
Previously the depth was being rendered as a floating point number with a decimal point. Thanks to Nick Yakimov for noticing this.
This commit is contained in:
parent
fee04fbee0
commit
0439f6f964
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ pandocToRST (Pandoc meta blocks) = do
|
|||
let main = render colwidth $ foldl ($+$) empty $ [body, notes, refs, pics]
|
||||
let context = defField "body" main
|
||||
$ defField "toc" (writerTableOfContents opts)
|
||||
$ defField "toc-depth" (writerTOCDepth opts)
|
||||
$ defField "toc-depth" (show $ writerTOCDepth opts)
|
||||
$ defField "math" hasMath
|
||||
$ defField "title" (render Nothing title :: String)
|
||||
$ defField "math" hasMath
|
||||
|
|
Loading…
Reference in a new issue