3
0
Fork 0
forked from mirrors/nixpkgs

nixos/make-options-doc: enable smartquotes and replacements

the rest of the nixos manual has them enabled, so we should enable them
here too for consistency.

this changes rendered output pervasively. changes also include quotes in
types (eg in `strings concatenated with "\n"`), but since those are not
code this is probably fine. if not we can probably add a myst role to
inhibit replacements.
This commit is contained in:
pennae 2023-01-23 21:26:33 +01:00
parent de22a26b4c
commit 9ff987764c

View file

@ -199,6 +199,7 @@ class Converter:
{
'maxNesting': 100, # default is 20
'html': False, # not useful since we target many formats
'typographer': True, # required for smartquotes
},
renderer_cls=Renderer
)
@ -208,6 +209,7 @@ class Converter:
self._md.use(container_plugin, name="{.warning}")
self._md.use(deflist_plugin)
self._md.use(myst_role_plugin)
self._md.enable(["smartquotes", "replacements"])
self._manpage_urls = frozendict(manpage_urls)