Skip to content

Python tool for converting files and office documents to Markdown.

Merge branch 'main' into patch-2

afourneyddc1bebea4aa
diff --cc src/markitdown/_markitdown.py
index f46dd3f7,714911b0..9cbd1db4
--- a/src/markitdown/_markitdown.py
+++ b/src/markitdown/_markitdown.py
@@@ -1030,11 -1176,13 +1176,14 @@@ class MarkItDown
_kwargs.update({"file_extension": ext})
# Copy any additional global options
- if "mlm_client" not in _kwargs and self._mlm_client is not None:
- _kwargs["mlm_client"] = self._mlm_client
+ if "llm_client" not in _kwargs and self._llm_client is not None:
+ _kwargs["llm_client"] = self._llm_client
- if "mlm_model" not in _kwargs and self._mlm_model is not None:
- _kwargs["mlm_model"] = self._mlm_model
+ if "llm_model" not in _kwargs and self._llm_model is not None:
+ _kwargs["llm_model"] = self._llm_model
++
+ # Add the list of converters for nested processing
+ _kwargs["_parent_converters"] = self._page_converters
# If we hit an error log it and keep trying
try: