Skip to content

Commit

Permalink
Fix list parser for customized list grammar.
Browse files Browse the repository at this point in the history
ref: #331
  • Loading branch information
lepture committed Feb 7, 2023
1 parent 1264a1c commit 71c9774
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions mistune/block_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,7 @@ def _create_list_item_pattern(spaces, marker):
else:
prefix = prefix + r'\d{0,9}\)'
else:
if marker == '*':
prefix = prefix + r'\*'
elif marker == '+':
prefix = prefix + r'\+'
else:
prefix = prefix + r'-'
prefix = prefix + re.escape(marker)

s1 = ' {' + str(len(marker) + 1) + ',}'
if len(marker) > 4:
Expand Down

0 comments on commit 71c9774

Please sign in to comment.