feat: Change Google Docs export format to markdown

This commit is contained in:
Taylor Wilsdon (aider) 2024-12-16 13:49:53 -05:00
parent f4b9f77cc9
commit b46f4ff3e0

View File

@ -136,14 +136,11 @@ export const createPicker = () => {
if (mimeType.includes('google-apps')) {
// Handle Google Workspace files
if (mimeType.includes('document')) {
exportFormat =
'application/vnd.openxmlformats-officedocument.wordprocessingml.document';
exportFormat = 'text/markdown';
} else if (mimeType.includes('spreadsheet')) {
exportFormat = 'text/csv';
} else if (mimeType.includes('presentation')) {
exportFormat = 'text/plain';
exportFormat =
'application/vnd.openxmlformats-officedocument.presentationml.presentation';
} else {
exportFormat = 'application/pdf';
}