From eb005f69e860a994af15787a48d2ccd0079d714c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 16:42:14 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- mdit_py_plugins/texmath/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdit_py_plugins/texmath/index.py b/mdit_py_plugins/texmath/index.py index 63a169d..c00e70e 100644 --- a/mdit_py_plugins/texmath/index.py +++ b/mdit_py_plugins/texmath/index.py @@ -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 '$'