Commit 9a6c87e
committed
fix(doc-intel): include HTML in the default DocumentIntelligenceConverter file types
The constructor documents file_types as "Defaults to all supported file
types", but the default list has never contained
DocumentIntelligenceFileType.HTML, even though the enum lists it under
"# No OCR" and _get_mime_type_prefixes / _get_file_extensions /
_analysis_features all handle it.
So accepts() rejects .html, text/html and application/xhtml+xml unless
the caller passes file_types explicitly. The HTML mappings added in #1352
are unreachable through the default constructor, and MarkItDown never
passes file_types when it builds the converter from docintel_endpoint.1 parent fd239d5 commit 9a6c87e
2 files changed
Lines changed: 24 additions & 1 deletion
File tree
- packages/markitdown
- src/markitdown/converters
- tests
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
| |||
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
254 | | - | |
| 255 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
| |||
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
0 commit comments