feat: add MIME plumbing for markdown (.md) format
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user