[format.python] based on bugfix in 9ed626130

This commit is contained in:
Markus Heiser 2022-05-07 18:23:10 +02:00
parent 9ed6261308
commit 4326009d00
5 changed files with 40 additions and 36 deletions

View file

@ -77,11 +77,9 @@ class InfoPage:
.. _markdown-it-py: https://github.com/executablebooks/markdown-it-py
"""
return MarkdownIt(
"commonmark", {"typographer": True}
).enable(
["replacements", "smartquotes"]
).render(self.content)
return (
MarkdownIt("commonmark", {"typographer": True}).enable(["replacements", "smartquotes"]).render(self.content)
)
def get_ctx(self): # pylint: disable=no-self-use
"""Jinja context to render :py:obj:`InfoPage.content`"""