add support to column macro

This commit is contained in:
Guilherme Paiva 2024-01-24 11:10:15 +13:00 committed by Manuel Rüger
parent a04f41161f
commit 8dd83bdf62

View File

@ -427,6 +427,13 @@ func templates(api *confluence.API) (*template.Template, error) {
`<ac:parameter ac:name="theme">{{ or .Theme "" }}</ac:parameter>`, `<ac:parameter ac:name="theme">{{ or .Theme "" }}</ac:parameter>`,
`</ac:structured-macro>`, `</ac:structured-macro>`,
), ),
/* https://confluence.atlassian.com/conf59/column-macro-792499085.html */
`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:structured-macro>`,
),
// TODO(seletskiy): more templates here // TODO(seletskiy): more templates here
} { } {