Skip to content

Commit

Permalink
upgrade mistune to v3 (#473)
Browse files Browse the repository at this point in the history
* upgrade mistune to v3

* fix compatible issue
  • Loading branch information
laixintao authored Sep 15, 2023
1 parent 41ea1fc commit a262430
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions iredis/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def heading(self, text, level):
return super().heading(header_text, 2)
return super().heading(self._to_title(text), level)

def list(self, body, ordered, level, start=None):
def list(self, body, ordered, *args, **kwargs):
"""Rendering list tags like ``<ul>`` and ``<ol>``.
:param body: body contents of the list.
Expand All @@ -41,7 +41,7 @@ def list(self, body, ordered, level, start=None):
tag = "ol"
return "<%s>%s</%s>\n" % (tag, body, tag)

def list_item(self, text, level):
def list_item(self, text, *args):
"""Rendering list item snippet. Like ``<li>``."""
return "<li> * %s</li>\n" % text

Expand Down
12 changes: 6 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ packages = [
python = "^3.7"
prompt_toolkit = "^3"
Pygments = "^2"
mistune = "^2.0"
mistune = "^3.0"
configobj = "^5.0"
click = "^7.0"
pendulum = "^2.0"
Expand Down

0 comments on commit a262430

Please sign in to comment.