From e5a39e87ffa9e899a9e1a049c249e7a4bcbe54b6 Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Fri, 12 Jan 2024 00:31:04 +0100 Subject: [PATCH] fix failures --- mdit_py_plugins/dollarmath/index.py | 2 +- mdit_py_plugins/texmath/index.py | 4 ++-- tests/test_footnote.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mdit_py_plugins/dollarmath/index.py b/mdit_py_plugins/dollarmath/index.py index 2cd7c3f..aebd3ea 100644 --- a/mdit_py_plugins/dollarmath/index.py +++ b/mdit_py_plugins/dollarmath/index.py @@ -77,7 +77,7 @@ def dollarmath_plugin( _label_renderer: Callable[[str], str] if label_renderer is None: _label_renderer = ( - lambda label: f'' # noqa: E501 + lambda label: f'' ) else: _label_renderer = label_renderer diff --git a/mdit_py_plugins/texmath/index.py b/mdit_py_plugins/texmath/index.py index 168d46e..63a169d 100644 --- a/mdit_py_plugins/texmath/index.py +++ b/mdit_py_plugins/texmath/index.py @@ -228,7 +228,7 @@ def render(tex: str, displayMode: bool, macros: Any) -> str: "rex": re.compile( r"^`{3}math\s+?([^`]+?)\s+?`{3}\s*?\(([^)$\r\n]+?)\)", re.M ), - "tmpl": '
\n{0}({1})\n
\n', # noqa: E501 + "tmpl": '
\n{0}({1})\n
\n', "tag": "```math", }, { @@ -328,7 +328,7 @@ def render(tex: str, displayMode: bool, macros: Any) -> str: { "name": "math_block_eqno", "rex": re.compile(r"^\${2}([^$]*?)\${2}\s*?\(([^)$\r\n]+?)\)", re.M), - "tmpl": '
\n{0}({1})\n
\n', # noqa: E501 + "tmpl": '
\n{0}({1})\n
\n', "tag": "$$", }, { diff --git a/tests/test_footnote.py b/tests/test_footnote.py index e543c14..fb9bf9d 100644 --- a/tests/test_footnote.py +++ b/tests/test_footnote.py @@ -443,7 +443,7 @@ def test_plugin_render(): - """ # noqa: E501 + """ ) )