Document column macro

This commit is contained in:
Manuel Rüger 2024-01-26 16:15:06 +01:00
parent 8dd83bdf62
commit 78f7666697
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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 }}`,
`<ac:structured-macro ac:name="profile">`,
`<ac:parameter ac:name="user">`,
`{{ if .AccountID }}`,
@ -431,7 +431,7 @@ func templates(api *confluence.API) (*template.Template, error) {
`ac:column`: text(
`<ac:structured-macro ac:name="column">`,
`<ac:parameter ac:name="width">{{ or .Width "" }}</ac:parameter>`,
`<ac:rich-text-body>{{ or .Body "" }}</ac:rich-text-body>`,
`<ac:rich-text-body>{{ or .Body "" }}</ac:rich-text-body>`,
`</ac:structured-macro>`,
),