From 8bff3fef401ed3ead39fd42bd581590ed863026e Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Mon, 27 Jun 2022 17:32:48 +0200 Subject: [PATCH] nixos/make-options-doc: Support block quotes Our tooling would trip without the inner , despite the docbook docs suggesting that occurs in
and vice versa. --- nixos/lib/make-options-doc/mergeJSON.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/lib/make-options-doc/mergeJSON.py b/nixos/lib/make-options-doc/mergeJSON.py index c884a671f53..5f70d07ce4a 100644 --- a/nixos/lib/make-options-doc/mergeJSON.py +++ b/nixos/lib/make-options-doc/mergeJSON.py @@ -104,6 +104,8 @@ def convertMD(options: Dict[str, Any]) -> str: # a single paragraph and the original docbook string is no longer # available to restore the trailer. return f"<{tag}>{text.rstrip()}" + def block_quote(self, text): + return f"
{text}
" def command(self, text): return f"{escape(text)}" def option(self, text):