CrewDoclingSource does not support text files

The Documentation mentions that CrewDoclingSource supports text files. But I got an error when I tried with it.

This is what the documentation says.

Default Source class for converting documents to markdown or json
This will auto support PDF, DOCX, and TXT, XLSX, Images, and HTML files without any additional dependencies and follows the docling package as the source of truth.

The error I got is

Error loading content: File format not allowed: knowledge/API Responses - {API} newbies.txt. Supported formats: [<InputFormat.MD: ‘md’>, <InputFormat.ASCIIDOC: ‘asciidoc’>, <InputFormat.PDF: ‘pdf’>, <InputFormat.DOCX: ‘docx’>, <InputFormat.HTML: ‘html’>, <InputFormat.IMAGE: ‘image’>, <InputFormat.XLSX: ‘xlsx’>, <InputFormat.PPTX: ‘pptx’>]

So I looked into the source code and found no support for text files. So we just have to store it as markdown and use it instead!

default_factory=lambda: DocumentConverter(
    allowed_formats=[
        InputFormat.MD,
        InputFormat.ASCIIDOC,
        InputFormat.PDF,
        InputFormat.DOCX,
        InputFormat.HTML,
        InputFormat.IMAGE,
        InputFormat.XLSX,
        InputFormat.PPTX,
    ]
)