Bump Markdown to 3.7.* (#12565)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
authored and GitHub committed 2024-08-21 18:06:28 +03:00
1 parent 7f38b116a0
commit 8307b3c362
3 files changed
+27 -3

No files matched your search

+23 -2
View File
@@ -1,15 +1,36 @@
from re import Pattern
from typing import ClassVar
from typing_extensions import deprecated
from xml.etree.ElementTree import Element
from markdown.blockparser import BlockParser
from markdown.blockprocessors import BlockProcessor
from markdown.core import Markdown
from markdown.extensions import Extension
from markdown.inlinepatterns import InlineProcessor
from markdown.treeprocessors import Treeprocessor
class AbbrExtension(Extension): ...
class AbbrExtension(Extension):
def reset(self) -> None: ...
def reset_glossary(self) -> None: ...
def load_glossary(self, dictionary: dict[str, str]) -> None: ...
class AbbrPreprocessor(BlockProcessor):
class AbbrTreeprocessor(Treeprocessor):
RE: Pattern[str] | None
abbrs: dict[str, str]
def __init__(self, md: Markdown | None = None, abbrs: dict[str, str] | None = None) -> None: ...
def iter_element(self, el: Element, parent: Element | None = None) -> None: ...
# Techinically it is the same type as `AbbrPreprocessor` just not deprecated.
class AbbrBlockprocessor(BlockProcessor):
RE: ClassVar[Pattern[str]]
abbrs: dict[str, str]
def __init__(self, parser: BlockParser, abbrs: dict[str, str]) -> None: ...
@deprecated("This class will be removed in the future; use `AbbrTreeprocessor` instead.")
class AbbrPreprocessor(AbbrBlockprocessor): ...
@deprecated("This class will be removed in the future; use `AbbrTreeprocessor` instead.")
class AbbrInlineProcessor(InlineProcessor):
title: str
def __init__(self, pattern: str, title: str) -> None: ...