mirror of
https://github.com/kovetskiy/mark.git
synced 2026-04-19 04:31:11 +00:00
feat: add support for image dimensions
This commit is contained in:
committed by
Manuel Rüger
parent
c32cd79dc8
commit
4d887bde74
@@ -212,6 +212,7 @@ func templates(api *confluence.API) (*template.Template, error) {
|
||||
`ac:image`: text(
|
||||
`<ac:image`,
|
||||
`{{ if .Align }} ac:align="{{ .Align }}"{{ end }}`,
|
||||
`{{ if eq .Align "left" }} ac:layout="align-start"{{ else if eq .Align "center" }} ac:layout="center"{{ else if eq .Align "right" }} ac:layout="align-end"{{ else if eq .Align "wide" }} ac:layout="center"{{ end }}`,
|
||||
`{{ if .Width }} ac:width="{{ .Width }}"{{ end }}`,
|
||||
`{{ if .Height }} ac:height="{{ .Height }}"{{ end }}`,
|
||||
`{{ if .Title }} ac:title="{{ .Title }}"{{ end }}`,
|
||||
|
||||
Reference in New Issue
Block a user