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.
This commit is contained in:
parent
e04aa1bcd9
commit
8bff3fef40
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue