11from _typeshed import Incomplete
2- from typing import TypedDict , Unpack
32
43ATX : str
54ATX_CLOSED : str
@@ -15,37 +14,61 @@ STRIP: str
1514STRIP_ONE : str
1615
1716
18- class Options (TypedDict , total = False ):
19- autolinks : bool
20- bs4_options : str
21- bullets : str # An iterable of bullet types.
22- code_language : str
23- code_language_callback : Incomplete | None
24- convert : list [str ] | None
25- default_title : bool
26- escape_asterisks : bool
27- escape_underscores : bool
28- escape_misc : bool
29- heading_style : str
30- keep_inline_images_in : list [str ]
31- newline_style : str
32- strip : list [str ] | None
33- strip_document : str | None
34- strip_pre : str
35- strong_em_symbol : str
36- sub_symbol : str
37- sup_symbol : str
38- table_infer_header : bool
39- wrap : bool
40- wrap_width : int
41-
42-
43- def markdownify (html : str , ** kwargs : Unpack [Options ]) -> str : ...
17+ def markdownify (
18+ html : str ,
19+ autolinks : bool = ...,
20+ bs4_options : str = ...,
21+ bullets : str = ...,
22+ code_language : str = ...,
23+ code_language_callback : Incomplete | None = ...,
24+ convert : list [str ] | None = ...,
25+ default_title : bool = ...,
26+ escape_asterisks : bool = ...,
27+ escape_underscores : bool = ...,
28+ escape_misc : bool = ...,
29+ heading_style : str = ...,
30+ keep_inline_images_in : list [str ] = ...,
31+ newline_style : str = ...,
32+ strip : list [str ] | None = ...,
33+ strip_document : str | None = ...,
34+ strip_pre : str = ...,
35+ strong_em_symbol : str = ...,
36+ sub_symbol : str = ...,
37+ sup_symbol : str = ...,
38+ table_infer_header : bool = ...,
39+ wrap : bool = ...,
40+ wrap_width : int = ...,
41+ ) -> str : ...
4442
4543
4644class MarkdownConverter :
47- def __init__ (self , ** kwargs : Unpack [Options ]) -> None :
48- ...
45+ def __init__ (
46+ self ,
47+ html : str ,
48+ autolinks : bool = ...,
49+ bs4_options : str = ...,
50+ bullets : str = ...,
51+ code_language : str = ...,
52+ code_language_callback : Incomplete | None = ...,
53+ convert : list [str ] | None = ...,
54+ default_title : bool = ...,
55+ escape_asterisks : bool = ...,
56+ escape_underscores : bool = ...,
57+ escape_misc : bool = ...,
58+ heading_style : str = ...,
59+ keep_inline_images_in : list [str ] = ...,
60+ newline_style : str = ...,
61+ strip : list [str ] | None = ...,
62+ strip_document : str | None = ...,
63+ strip_pre : str = ...,
64+ strong_em_symbol : str = ...,
65+ sub_symbol : str = ...,
66+ sup_symbol : str = ...,
67+ table_infer_header : bool = ...,
68+ wrap : bool = ...,
69+ wrap_width : int = ...,
70+ ) -> None :
71+ ...
4972
50- def convert (self , html : str ) -> str :
51- ...
73+ def convert (self , html : str ) -> str :
74+ ...
0 commit comments