feat: add MIME plumbing for markdown (.md) format

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-31 08:29:55 +02:00
co-authored by Claude Sonnet 5
parent 7d61209bd8
commit 28b6edac82
4 changed files with 132 additions and 0 deletions
+2
View File
@@ -13,6 +13,7 @@ const OUTPUT_MIME_TYPES = {
html: 'text/html',
txt: 'text/plain',
docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
md: 'text/markdown',
};
export async function detectInputMime(filePath) {
@@ -31,6 +32,7 @@ export function outputMimeType(targetFormat) {
const UNDETECTABLE_TEXT_FORMATS = {
txt: 'text/plain',
html: 'text/html',
md: 'text/markdown',
};
function normalizeFormat(format) {