diff options
| author | Albert Krewinkel <[email protected]> | 2024-06-18 09:10:08 +0200 |
|---|---|---|
| committer | Albert Krewinkel <[email protected]> | 2024-06-18 09:13:05 +0200 |
| commit | 1e8799ca60352ecf0492bfcac4b923608c55a35c (patch) | |
| tree | 047317715b49e53d7c1f4219eb814c09f1a34fdd /doc/custom-writers.md | |
| parent | 532bbc875bbcb52ddbaa02600bb856d7e32b795e (diff) | |
doc/custom-writers.md: document the separator arg of `Writer.Blocks`
Mention that the default `Writer.Blocks` function in
`pandoc.scaffolding.Writer` takes a separator as an optional second
argument.
Diffstat (limited to 'doc/custom-writers.md')
| -rw-r--r-- | doc/custom-writers.md | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/custom-writers.md b/doc/custom-writers.md index 81493c382..e382ef7c8 100644 --- a/doc/custom-writers.md +++ b/doc/custom-writers.md @@ -173,7 +173,10 @@ result of that call. Similarly, the functions `Writer.Blocks` and `Writer.Inlines` can be used to render lists of elements, and `Writer.Pandoc` renders -the document's blocks. +the document's blocks. The function `Writer.Blocks` can take a +separator as an optional second argument, e.g., +`Writer.Blocks(blks, pandoc.layout.cr)`; the default block +separator is `pandoc.layout.blankline`. All predefined functions can be overwritten when needed. |
