Skip to content

Commit 4582513

Browse files
committed
👌 IMPROVE: Fix _isspace redundancy and docstring formatting in GFM plugins
1 parent b5206e2 commit 4582513

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎mdit_py_plugins/gfm/__init__.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- Task lists (built-in, markdown-it-py >= 4.1.0)
99
- Alerts (built-in, markdown-it-py >= 4.1.0)
1010
- Footnotes (``[^label]`` references and definitions)
11+
1112
Optional extras:
1213
1314
- Dollar math (``$...$`` / ``$$...$$``)

‎mdit_py_plugins/gfm_autolink/_match.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def _is_valid_hostchar(ch: str) -> bool:
3333

3434

3535
def _isspace(ch: str) -> bool:
36-
return ch in _SPACE_CHARS or ch == "\r" or ch == "\n"
36+
return ch in _SPACE_CHARS
3737

3838

3939
_LINK_END_ASSORTMENT = frozenset("?!.,:*_~'\"[]")

0 commit comments

Comments
 (0)