summaryrefslogtreecommitdiff
path: root/searx/infopage
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-05-07 18:23:10 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2022-05-07 18:23:10 +0200
commit4326009d003f0c5cda518deeff0030903fbc7605 (patch)
tree98123244a625e5ff30232c4c83d06047bd856030 /searx/infopage
parent9ed6261308da1fafb0bda4c5bd5cf73c7b4c3444 (diff)
downloadsearxng-4326009d003f0c5cda518deeff0030903fbc7605.tar.gz
searxng-4326009d003f0c5cda518deeff0030903fbc7605.zip
[format.python] based on bugfix in 9ed626130
Diffstat (limited to 'searx/infopage')
-rw-r--r--searx/infopage/__init__.py8
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`"""