feat: enable Markdown (.md) file upload in KB Accelerator

Moved md from Phase 2 extensions to allowed formats, added extraction
handler (reuses txt handler), and updated plan_limits defaults to
include md for all plans.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
chihlasm
2026-03-11 23:29:51 -04:00
parent fe3c651115
commit 03390ed59f
4 changed files with 49 additions and 4 deletions

View File

@@ -159,6 +159,7 @@ def _extract_docx(content_bytes: bytes) -> ExtractResult:
# Registry of format handlers — extend for Phase 2
FORMAT_HANDLERS: dict[str, ExtractHandler] = {
"txt": _extract_txt,
"md": _extract_txt,
"paste": _extract_paste,
"docx": _extract_docx,
}