feat: implement and recognize vimeo macro
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user