You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Large HTML files (>3MB) silently return unconverted HTML #1636
When passing large HTML files (>3MB) to MarkItDown, the conversion silently fails and returns the input HTML unchanged instead of markdown. No error is raised.
Output is markdown text, significantly smaller than input
HTML tags are stripped
Actual:
Output is nearly identical to input (4.1MB → 4.1MB)
Output still contains raw HTML tags (<div>, <span>, inline CSS)
No error or warning raised
Comparison with smaller file
A 2MB HTML file from the same source (Paychex DEF 14A) converts correctly:
Input: 2,056,755 bytes HTML
Output: 319,767 bytes markdown
No HTML tags in output
Environment
markitdown version: latest (pip install)
Python 3.13
macOS
Impact
This makes it impossible to reliably convert large SEC filings (proxy statements, annual reports) to markdown. The silent failure is particularly problematic since there's no indication the conversion didn't work — the caller has to check the output for HTML tags to detect the failure.
A warning or exception when conversion fails would be preferable to silently returning the input.
I'd like to work on this. Will investigate why large HTML files (>3MB) silently return unconverted HTML — likely a size/timeout issue in the HTML-to-markdown conversion pipeline. Will have a draft PR up shortly.
Activity
jigangz commentedon Mar 28, 2026
I'd like to work on this. Will investigate why large HTML files (>3MB) silently return unconverted HTML — likely a size/timeout issue in the HTML-to-markdown conversion pipeline. Will have a draft PR up shortly.
fix: handle deeply nested HTML that triggers RecursionError (microsof…
codechamp12345 commentedon Apr 11, 2026
nice
fix: handle deeply nested HTML that triggers RecursionError (#1644)
chore: merge upstream 0.1.6 (#50)
chore: sync upstream main (#52)
fix: handle deeply nested HTML that triggers RecursionError (microsof…