diff --git a/src/mistune/list_parser.py b/src/mistune/list_parser.py index 6a5e8dd..a78e1a5 100644 --- a/src/mistune/list_parser.py +++ b/src/mistune/list_parser.py @@ -13,7 +13,7 @@ r'(?P[ \t]*|[ \t].+)$' ) -_LINE_HAS_TEXT = re.compile(r'( *)\S') +_LINE_HAS_TEXT = re.compile(r'(\s*)\S') def parse_list(block, m: re.Match, state: BlockState) -> int: