From 8debc23476e1f23a73ac28702f75fc4e65a20943 Mon Sep 17 00:00:00 2001 From: Sylvain Malnuit Date: Tue, 28 Sep 2021 15:00:13 +0200 Subject: [PATCH] ac:image --- pkg/mark/stdlib/stdlib.go | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 */