@@ -139,10 +139,23 @@ keep_inline_images_in
139139 that should be allowed to contain inline images, for example ``['td'] ``.
140140 Defaults to an empty list.
141141
142+ table_infer_header
143+ Controls handling of tables with no header row (as indicated by ``<thead> ``
144+ or ``<th> ``). When set to ``True ``, the first body row is used as the header row.
145+ Defaults to ``False ``, which leaves the header row empty.
146+
142147wrap, wrap_width
143148 If ``wrap `` is set to ``True ``, all text paragraphs are wrapped at
144149 ``wrap_width `` characters. Defaults to ``False `` and ``80 ``.
145150 Use with ``newline_style=BACKSLASH `` to keep line breaks in paragraphs.
151+ A `wrap_width ` value of `None ` reflows lines to unlimited line length.
152+
153+ strip_document
154+ Controls whether leading and/or trailing separation newlines are removed from
155+ the final converted document. Supported values are ``LSTRIP `` (leading),
156+ ``RSTRIP `` (trailing), ``STRIP `` (both), and ``None `` (neither). Newlines
157+ within the document are unaffected.
158+ Defaults to ``STRIP ``.
146159
147160Options may be specified as kwargs to the ``markdownify `` function, or as a
148161nested ``Options `` class in ``MarkdownConverter `` subclasses.
@@ -167,7 +180,7 @@ If you have a special usecase that calls for a special conversion, you can
167180always inherit from ``MarkdownConverter `` and override the method you want to
168181change.
169182The function that handles a HTML tag named ``abc `` is called
170- ``convert_abc(self, el, text, convert_as_inline ) `` and returns a string
183+ ``convert_abc(self, el, text, parent_tags ) `` and returns a string
171184containing the converted HTML tag.
172185The ``MarkdownConverter `` object will handle the conversion based on the
173186function names:
@@ -180,8 +193,8 @@ function names:
180193 """
181194 Create a custom MarkdownConverter that adds two newlines after an image
182195 """
183- def convert_img (self , el , text , convert_as_inline ):
184- return super ().convert_img(el, text, convert_as_inline ) + ' \n\n '
196+ def convert_img (self , el , text , parent_tags ):
197+ return super ().convert_img(el, text, parent_tags ) + ' \n\n '
185198
186199 # Create shorthand method for conversion
187200 def md (html , ** options ):
@@ -195,7 +208,7 @@ function names:
195208 """
196209 Create a custom MarkdownConverter that ignores paragraphs
197210 """
198- def convert_p (self , el , text , convert_as_inline ):
211+ def convert_p (self , el , text , parent_tags ):
199212 return ' '
200213
201214 # Create shorthand method for conversion
0 commit comments