diff options
| author | Alexandre Flament <alex@al-f.net> | 2022-05-07 19:34:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-07 19:34:23 +0200 |
| commit | 6db568bf69b7145451ff90e14da0e49fb5b6269b (patch) | |
| tree | 98123244a625e5ff30232c4c83d06047bd856030 /searx/infopage/__init__.py | |
| parent | 30756d5cfc517f63a0778a54799ab6431e062e56 (diff) | |
| parent | 4326009d003f0c5cda518deeff0030903fbc7605 (diff) | |
Merge pull request #1185 from return42/fix-1142
[fix] format.python: regexp argument '--include' in BLACK_TARGETS
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`""" |