Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 16, 2024
1 parent d3e2472 commit 6997fd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdit_py_plugins/texmath/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def _func(state: StateBlock, begLine: int, endLine: int, silent: bool) -> bool:
def dollar_pre(src: str, beg: int) -> bool:
prv = charCodeAt(src[beg - 1], 0) if beg > 0 else False
return (
(not prv) or prv != 0x5C and (prv < 0x30 or prv > 0x39) # no backslash,
(not prv) or (prv != 0x5C and (prv < 0x30 or prv > 0x39)) # no backslash,
) # no decimal digit .. before opening '$'


Expand Down

0 comments on commit 6997fd9

Please sign in to comment.