Skip to content

Commit

Permalink
fix failures
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Jan 11, 2024
1 parent c6fb36a commit e5a39e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mdit_py_plugins/dollarmath/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def dollarmath_plugin(
_label_renderer: Callable[[str], str]
if label_renderer is None:
_label_renderer = (
lambda label: f'<a href="#{label}" class="mathlabel" title="Permalink to this equation">¶</a>' # noqa: E501
lambda label: f'<a href="#{label}" class="mathlabel" title="Permalink to this equation">¶</a>'
)
else:
_label_renderer = label_renderer
Expand Down
4 changes: 2 additions & 2 deletions mdit_py_plugins/texmath/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": '<section class="eqno">\n<eqn>{0}</eqn><span>({1})</span>\n</section>\n', # noqa: E501
"tmpl": '<section class="eqno">\n<eqn>{0}</eqn><span>({1})</span>\n</section>\n',
"tag": "```math",
},
{
Expand Down Expand Up @@ -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": '<section class="eqno">\n<eqn>{0}</eqn><span>({1})</span>\n</section>\n', # noqa: E501
"tmpl": '<section class="eqno">\n<eqn>{0}</eqn><span>({1})</span>\n</section>\n',
"tag": "$$",
},
{
Expand Down
2 changes: 1 addition & 1 deletion tests/test_footnote.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def test_plugin_render():
</li>
</ol>
</section>
""" # noqa: E501
"""
)
)

Expand Down

0 comments on commit e5a39e8

Please sign in to comment.