diff --git a/README.md b/README.md index dbee00e..64b780f 100644 --- a/README.md +++ b/README.md @@ -443,7 +443,7 @@ By default, mark provides several built-in templates and macros: * template: `ac:panel` to display a block of text within a customisable panel - Title: Panel title (optional) - - Body: Body text of the panel + - Body: Body text of the panel - BGColor: Background Color - TitleBGColor: Background color of the title bar - TitleColor: Text color of the title @@ -461,6 +461,10 @@ By default, mark provides several built-in templates and macros: * template: `ac:pagetreesearch` to add a search box to your Confluence page. - Root: Name of the root page whose hierarchy of pages will be searched by this macro. If this not specified, the root page is the current page. +* template: `ac:column` To be used with the section macro to define the columns in a page. + - Width: Width of the column + - Body: The content of the column + * 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 1412223..4e852b7 100644 --- a/pkg/mark/stdlib/stdlib.go +++ b/pkg/mark/stdlib/stdlib.go @@ -336,7 +336,7 @@ func templates(api *confluence.API) (*template.Template, error) { /* https://confluence.atlassian.com/conf59/user-profile-macro-792499223.html */ `ac:profile`: text( - `{{ with .Name | user }}`, + `{{ with .Name | user }}`, ``, ``, `{{ if .AccountID }}`, @@ -431,7 +431,7 @@ func templates(api *confluence.API) (*template.Template, error) { `ac:column`: text( ``, `{{ or .Width "" }}`, - `{{ or .Body "" }}`, + `{{ or .Body "" }}`, ``, ),