Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/markitdown/_markitdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ class _CustomMarkdownify(markdownify.MarkdownConverter):

def __init__(self, **options: Any):
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
super().__init__(**options)

Expand Down