mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
Support --number-sections in RST output...
via the "section-numbering" directive in standalone output.
This commit is contained in:
@@ -30,6 +30,10 @@ $if(toc)$
|
||||
:depth: $toc-depth$
|
||||
..
|
||||
|
||||
$endif$
|
||||
$if(number-sections)$
|
||||
.. section-numbering::
|
||||
|
||||
$endif$
|
||||
$for(header-includes)$
|
||||
$header-includes$
|
||||
|
||||
@@ -103,6 +103,7 @@ pandocToRST (Pandoc meta blocks) = do
|
||||
let context = defField "body" main
|
||||
$ defField "toc" (writerTableOfContents opts)
|
||||
$ defField "toc-depth" (show $ writerTOCDepth opts)
|
||||
$ defField "number-sections" (writerNumberSections opts)
|
||||
$ defField "math" hasMath
|
||||
$ defField "title" (render Nothing title :: String)
|
||||
$ defField "math" hasMath
|
||||
|
||||
Reference in New Issue
Block a user