[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2024-01-31 23:04:43 +00:00
parent f5857ba2cc
commit a702518cda
6 changed files with 66 additions and 56 deletions

View File

@@ -5,10 +5,10 @@ from pyweb.ui.elements import TextElementBase
class markdown(TextElementBase):
"""Markdown component to render HTML from Markdown code"""
tag = 'div'
def __init__(self, content, style = None, **kwargs):
tag = "div"
def __init__(self, content, style=None, **kwargs):
# TODO: We should sanitize the content!!!!!
html = window.marked.parse(content)
super().__init__(html, style=style, **kwargs)