fix(Default Data Loader Node): Use text loader for text/markdown mime-types (#19549)

This commit is contained in:
oleg
2025-09-15 13:08:53 +02:00
committed by GitHub
parent 82184c770e
commit 2b0203ef54

View File

@@ -25,7 +25,7 @@ const SUPPORTED_MIME_TYPES = {
csvLoader: ['text/csv'], csvLoader: ['text/csv'],
epubLoader: ['application/epub+zip'], epubLoader: ['application/epub+zip'],
docxLoader: ['application/vnd.openxmlformats-officedocument.wordprocessingml.document'], docxLoader: ['application/vnd.openxmlformats-officedocument.wordprocessingml.document'],
textLoader: ['text/plain', 'text/mdx', 'text/md'], textLoader: ['text/plain', 'text/mdx', 'text/md', 'text/markdown'],
jsonLoader: ['application/json'], jsonLoader: ['application/json'],
}; };