diff --git a/pkg/mark/stdlib/stdlib.go b/pkg/mark/stdlib/stdlib.go index 578c269..b328e2d 100644 --- a/pkg/mark/stdlib/stdlib.go +++ b/pkg/mark/stdlib/stdlib.go @@ -84,6 +84,13 @@ func templates(api *confluence.API) (*template.Template, error) { "]]>", ) }, + "convertAttachment": func(data string) string { + return strings.ReplaceAll( + data, + "/", + "_", + ) + }, }, ) @@ -210,6 +217,9 @@ func templates(api *confluence.API) (*template.Template, error) { `ac:emoticon`: text( ``, ), + `ac:image`: text( + ``, + ), /* https://confluence.atlassian.com/doc/widget-connector-macro-171180449.html#WidgetConnectorMacro-YouTube */