[Markdown] Update to 3.9.* (#14676)

This commit is contained in:
Brian Schubert
2025-09-05 19:07:39 +02:00
committed by GitHub
parent 64aa465f68
commit cb2c371676
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
version = "3.8.*"
version = "3.9.*"
upstream_repository = "https://github.com/Python-Markdown/markdown"
@@ -14,6 +14,7 @@ from markdown.treeprocessors import Treeprocessor
FN_BACKLINK_TEXT: str
NBSP_PLACEHOLDER: str
RE_REF_ID: Pattern[str]
RE_REFERENCE: Pattern[str]
class FootnoteExtension(Extension):
unique_prefix: int
@@ -22,11 +23,13 @@ class FootnoteExtension(Extension):
def __init__(self, **kwargs) -> None: ...
parser: BlockParser
md: Markdown
footnote_order: list[str]
footnotes: OrderedDict[str, str]
def reset(self) -> None: ...
def unique_ref(self, reference: str, found: bool = False) -> str: ...
def findFootnotesPlaceholder(self, root: Element) -> tuple[Element, Element, bool] | None: ...
def setFootnote(self, id: str, text: str) -> None: ...
def addFootnoteRef(self, id: str) -> None: ...
def get_separator(self) -> str: ...
def makeFootnoteId(self, id: str) -> str: ...
def makeFootnoteRefId(self, id: str, found: bool = False) -> str: ...
@@ -49,11 +52,19 @@ class FootnotePostTreeprocessor(Treeprocessor):
def add_duplicates(self, li: Element, duplicates: int) -> None: ...
def get_num_duplicates(self, li: Element) -> int: ...
def handle_duplicates(self, parent: Element) -> None: ...
def run(self, root: Element) -> None: ...
offset: int
class FootnoteTreeprocessor(Treeprocessor):
footnotes: FootnoteExtension
def __init__(self, footnotes: FootnoteExtension) -> None: ...
def run(self, root: Element) -> None: ...
class FootnoteReorderingProcessor(Treeprocessor):
footnotes: FootnoteExtension
def __init__(self, footnotes: FootnoteExtension) -> None: ...
def run(self, root: Element) -> None: ...
def reorder_footnotes(self, parent: Element) -> None: ...
class FootnotePostprocessor(Postprocessor):
footnotes: FootnoteExtension