From 1e8799ca60352ecf0492bfcac4b923608c55a35c Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Tue, 18 Jun 2024 09:10:08 +0200 Subject: 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. --- doc/custom-writers.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'doc') 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. -- cgit v1.2.3