This commit is contained in:
Hieu Lam 2025-02-10 12:00:48 +00:00 committed by GitHub
commit 34b33be279
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)