From b620825e861589490715ad8065d1fcba2e6d4c59 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Feb 2023 16:57:03 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/mdformat/plugins.py | 2 -- src/mdformat/renderer/_context.py | 1 - 2 files changed, 3 deletions(-) diff --git a/src/mdformat/plugins.py b/src/mdformat/plugins.py index be326d48..d4c96ae9 100644 --- a/src/mdformat/plugins.py +++ b/src/mdformat/plugins.py @@ -47,8 +47,6 @@ def add_cli_options(parser: argparse.ArgumentParser) -> None: @staticmethod def update_mdit(mdit: MarkdownIt) -> None: """Update the parser, e.g. by adding a plugin: `mdit.use(myplugin)`""" - - def _load_parser_extensions() -> dict[str, ParserExtensionInterface]: parser_extension_entrypoints = importlib_metadata.entry_points( group="mdformat.parser_extension" diff --git a/src/mdformat/renderer/_context.py b/src/mdformat/renderer/_context.py index a9e837f5..04d54a56 100644 --- a/src/mdformat/renderer/_context.py +++ b/src/mdformat/renderer/_context.py @@ -211,7 +211,6 @@ def _render_inline_as_text(node: RenderTreeNode, context: RenderContext) -> str: Don't try to use it! Spec requires to show `alt` content with stripped markup, instead of simple escaping. """ - def text_renderer(node: RenderTreeNode, context: RenderContext) -> str: return node.content