diff options
Diffstat (limited to 'searx/infopage/__init__.py')
| -rw-r--r-- | searx/infopage/__init__.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/searx/infopage/__init__.py b/searx/infopage/__init__.py index 143f523d8..f8be73f09 100644 --- a/searx/infopage/__init__.py +++ b/searx/infopage/__init__.py @@ -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`""" |