Skip to content

Commit 37ebe90

Browse files
authored
[Markdown] Bump to 3.6.* (#11607)
1 parent a35b769 commit 37ebe90

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

stubs/Markdown/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "3.5.*"
1+
version = "3.6.*"
22
upstream_repository = "https://github.com/Python-Markdown/markdown"
33
partial_stub = true
44

stubs/Markdown/markdown/extensions/attr_list.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ from xml.etree.ElementTree import Element
44
from markdown.extensions import Extension
55
from markdown.treeprocessors import Treeprocessor
66

7+
def get_attrs_and_remainder(attrs_string: str) -> tuple[list[tuple[str, str]], str]: ...
78
def get_attrs(str: str) -> list[tuple[str, str]]: ...
89
def isheader(elem: Element) -> bool: ...
910

@@ -14,7 +15,7 @@ class AttrListTreeprocessor(Treeprocessor):
1415
INLINE_RE: Pattern[str]
1516
NAME_RE: Pattern[str]
1617
def run(self, doc: Element) -> None: ...
17-
def assign_attrs(self, elem: Element, attrs: str) -> None: ...
18+
def assign_attrs(self, elem: Element, attrs_string: str, *, strict: bool = False) -> str: ...
1819
def sanitize_name(self, name: str) -> str: ...
1920

2021
class AttrListExtension(Extension): ...

stubs/Markdown/markdown/extensions/toc.pyi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from collections.abc import Iterator, MutableSet
22
from re import Pattern
33
from typing import Any, TypedDict
4+
from typing_extensions import deprecated
45
from xml.etree.ElementTree import Element
56

67
from markdown.core import Markdown
@@ -20,9 +21,16 @@ class _TocToken(_FlatTocToken):
2021
def slugify(value: str, separator: str, unicode: bool = False) -> str: ...
2122
def slugify_unicode(value: str, separator: str) -> str: ...
2223
def unique(id: str, ids: MutableSet[str]) -> str: ...
24+
@deprecated("Use `render_inner_html` and `striptags` instead.")
2325
def get_name(el: Element) -> str: ...
26+
@deprecated("Use `run_postprocessors`, `render_inner_html` and/or `striptags` instead.")
2427
def stashedHTML2text(text: str, md: Markdown, strip_entities: bool = True) -> str: ...
2528
def unescape(text: str) -> str: ...
29+
def strip_tags(text: str) -> str: ...
30+
def escape_cdata(text: str) -> str: ...
31+
def run_postprocessors(text: str, md: Markdown) -> str: ...
32+
def render_inner_html(el: Element, md: Markdown) -> str: ...
33+
def remove_fnrefs(root: Element) -> Element: ...
2634
def nest_toc_tokens(toc_list: list[_FlatTocToken]) -> list[_TocToken]: ...
2735

2836
class TocTreeprocessor(Treeprocessor):

0 commit comments

Comments
 (0)