feat: implement and recognize vimeo macro

This commit is contained in:
2026-02-15 17:49:59 +01:00
parent 5047463a93
commit 0aeeda616e
4 changed files with 106 additions and 1 deletions

View File

@@ -39,6 +39,21 @@ export const macroConfigs: MacroConfig[] = [
return undefined;
},
},
{
name: 'vimeo',
description: 'Embeds a Vimeo video player',
requiredParams: ['id'],
validate: (params) => {
if (!params.id) {
return 'Vimeo macro requires an "id" parameter (the video ID)';
}
// Vimeo IDs are numeric
if (!/^\d+$/.test(params.id)) {
return 'Invalid Vimeo video ID format (should be numeric)';
}
return undefined;
},
},
{
name: 'gallery',
description: 'Renders an image gallery from linked media files',