diff --git a/README.md b/README.md
index e789145..8e9f3a8 100644
--- a/README.md
+++ b/README.md
@@ -512,6 +512,22 @@ This is a [link to an existing confluence page](ac:Pagetitle)
And this is how to link when the linktext is the same as the [Pagetitle](ac:)
```
+### Add width for an image
+
+Use the following macro:
+```markdown
+
+```
+And attach any image with the following
+```markdown
+
+```
+The width will be the commented html after the image (in this case 300px).
+
+
## Installation
### Homebrew
diff --git a/pkg/mark/stdlib/stdlib.go b/pkg/mark/stdlib/stdlib.go
index 3cc1e3e..31c20b6 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 */