Merge 95da5fd2ae into 73ba69d8cd
This commit is contained in:
commit
34b33be279
1 changed files with 6 additions and 0 deletions
|
|
@ -88,6 +88,12 @@ class _CustomMarkdownify(markdownify.MarkdownConverter):
|
||||||
|
|
||||||
def __init__(self, **options: Any):
|
def __init__(self, **options: Any):
|
||||||
options["heading_style"] = options.get("heading_style", markdownify.ATX)
|
options["heading_style"] = options.get("heading_style", markdownify.ATX)
|
||||||
|
|
||||||
|
# Keep inline images in table elements
|
||||||
|
options["keep_inline_images_in"] = options.get(
|
||||||
|
"keep_inline_images_in", ["td", "tr", "div", "p", "span"]
|
||||||
|
)
|
||||||
|
|
||||||
# Explicitly cast options to the expected type if necessary
|
# Explicitly cast options to the expected type if necessary
|
||||||
super().__init__(**options)
|
super().__init__(**options)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue