nixos/make-options-doc: Support block quotes

Our tooling would trip without the inner <para>, despite the docbook
docs suggesting that <para> occurs in <blockquote> and vice versa.
main
Robert Hensing 2 years ago
parent e04aa1bcd9
commit 8bff3fef40
  1. 2
      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}><para>{text.rstrip()}</para></{tag}>"
def block_quote(self, text):
return f"<blockquote><para>{text}</para></blockquote>"
def command(self, text):
return f"<command>{escape(text)}</command>"
def option(self, text):

Loading…
Cancel
Save