nixos/make-options-doc: Support newline md node

This occurs in the ast generated for blockquotes.
This commit is contained in:
Robert Hensing 2022-06-27 17:30:47 +02:00
parent bccc3e747b
commit f900ed1749

View file

@ -65,6 +65,8 @@ def convertMD(options: Dict[str, Any]) -> str:
return escape(text)
def paragraph(self, text):
return text + "\n\n"
def newline(self):
return "<literallayout>\n</literallayout>"
def codespan(self, text):
return f"<literal>{text}</literal>"
def block_code(self, text, info=None):