11from _typeshed import Incomplete
2+ from typing import TypedDict , Unpack
23
34ATX : str
45ATX_CLOSED : str
@@ -13,29 +14,38 @@ RSTRIP: str
1314STRIP : str
1415STRIP_ONE : str
1516
16- def markdownify (
17- html : str ,
18- strip : list [str ] = ...,
19- convert : list [str ] = ...,
20- autolinks : bool = ...,
21- bullets : str = ..., # An iterable of bullet types.
22- code_language : str = ...,
23- code_language_callback : Incomplete = ...,
24- default_title : bool = ...,
25- escape_asterisks : bool = ...,
26- escape_underscores : bool = ...,
27- escape_misc : bool = ...,
28- heading_style : str = ...,
29- keep_inline_images_in : list [str ] = ...,
30- newline_style : str = ...,
31- strip_document : str | None = ...,
32- strong_em_symbol : str = ...,
33- sub_symbol : str = ...,
34- sup_symbol : str = ...,
35- table_infer_header : bool = ...,
36- wrap : bool = ...,
37- wrap_width : int = ...,
38- ) -> str : ...
17+
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 : ...
44+
3945
4046class MarkdownConverter :
41- pass
47+ def __init__ (self , ** kwargs : Unpack [Options ]) -> None :
48+ ...
49+
50+ def convert (self , html : str ) -> str :
51+ ...
0 commit comments