feat: google sheets embed (#615)

This commit is contained in:
Hoie Kim
2025-01-11 14:22:06 -08:00
committed by GitHub
parent f3dbf7cc5d
commit 5fece5fc68
4 changed files with 42 additions and 0 deletions

View File

@ -91,6 +91,14 @@ export const embedProviders: IEmbedProvider[] = [
return `https://drive.google.com/file/d/${match[4]}/preview`;
}
},
{
id: 'gsheets',
name: 'Google Sheets',
regex: /^((?:https?:)?\/\/)?((?:www|m)\.)?(docs\.google\.com)\/spreadsheets\/d\/e\/([a-zA-Z0-9_-]+)\/.*$/,
getEmbedUrl: (match, url: string) => {
return url
}
},
];
export function getEmbedProviderById(id: string) {