Skip to content

Commit 976e8ea

Browse files
author
Roman Donchenko
authored
Update mistune to the 2.0 release version (#2965)
I was hoping to do this after the release came out, and it finally happened.
1 parent 5bdb4e7 commit 976e8ea

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

ci/lib/omzdocs.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ def _get_all_ast_nodes(ast_nodes):
2222
for node in ast_nodes:
2323
yield node
2424
if 'children' in node:
25-
# workaround for https://github.com/lepture/mistune/issues/269
26-
if isinstance(node['children'], str):
27-
yield {'type': 'text', 'text': node['children']}
28-
else:
29-
yield from _get_all_ast_nodes(node['children'])
25+
yield from _get_all_ast_nodes(node['children'])
3026

3127
def _get_text_from_ast(ast_nodes):
3228
def get_text_from_node(node):

ci/requirements-check-basics.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ importlib-metadata==4.8.1
1919
# stevedore
2020
mccabe==0.6.1
2121
# via flake8
22-
mistune==2.0.0a6
22+
mistune==2.0.0
2323
# via -r ci/requirements-documentation.in
2424
pathspec==0.9.0
2525
# via yamllint

ci/requirements-documentation.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
mistune==2.0.0a6
1+
mistune~=2.0
22
pyyaml

0 commit comments

Comments
 (0)