diff --git a/README.md b/README.md index ba7443dd..a543b033 100644 --- a/README.md +++ b/README.md @@ -477,6 +477,10 @@ By default, mark provides several built-in templates and macros: * Width: Width of the column * Body: The content of the column +* template: `ac:multimedia` to embedd an attached video, animation or other multimedia files in a Confluence page + * Name: Name of the file + * Width: Width of the video (optional) + * macro `@{...}` to mention user by name specified in the braces. ## Template & Macros Usecases diff --git a/pkg/mark/stdlib/stdlib.go b/pkg/mark/stdlib/stdlib.go index 5a10ed4d..5ff547b1 100644 --- a/pkg/mark/stdlib/stdlib.go +++ b/pkg/mark/stdlib/stdlib.go @@ -435,6 +435,15 @@ func templates(api *confluence.API) (*template.Template, error) { `{{ or .Body "" }}`, ``, ), + /* https://confluence.atlassian.com/conf59/multimedia-macro-792499140.html */ + `ac:multimedia`: text( + ``, + `{{ or .Width 500 }}`, + ``, + `