nixos/make-options-doc: disable inline html

we target not only html, but also manpages. inline html is not helpful
for the latter.
This commit is contained in:
pennae 2023-01-23 21:23:02 +01:00
parent ba1f533134
commit 6b677d9148

View file

@ -194,7 +194,14 @@ class Renderer(markdown_it.renderer.RendererProtocol):
class Converter:
def __init__(self, manpage_urls: Dict[str, str]):
self._md = markdown_it.MarkdownIt(renderer_cls=Renderer)
self._md = markdown_it.MarkdownIt(
"commonmark",
{
'maxNesting': 100, # default is 20
'html': False, # not useful since we target many formats
},
renderer_cls=Renderer
)
# TODO maybe fork the plugin and have only a single rule for all?
self._md.use(container_plugin, name="{.note}")
self._md.use(container_plugin, name="{.important}")