Skip to content

Commit

Permalink
Fixed a bug with markdown where kwargs would throw an exception durin…
Browse files Browse the repository at this point in the history
…g some rendering
  • Loading branch information
Declow committed Oct 7, 2024
1 parent b0248c2 commit 6d89d02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uiwiz/elements/markdown/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ def __init__(self, content="") -> None:
self.render_html = False
self.classes("markdown-body")

def render_self(self, *_) -> str:
def render_self(self, *args, **kwargs) -> str:
output = ""
self.content = markdown2.markdown(self.content, extras=["fenced-code-blocks"])
self.content = self.content.replace("<ul>", '<ul class="list-disc">')
self.content = self.content.replace("<ol>", '<ol class="list-decimal">')
self.render_html = True
output = super().render_self()
output = super().render_self(*args, **kwargs)
return output

0 comments on commit 6d89d02

Please sign in to comment.