Add ac:image width and edited README.md

This commit is contained in:
Fethbita
2023-02-04 15:20:21 +02:00
parent 8debc23476
commit e0222ae6bd
2 changed files with 17 additions and 1 deletions

View File

@@ -494,6 +494,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
<!-- Macro: \!\[.*\]\((.+)\)\<\!\-\- (.*) \-\-\>
Template: ac:image
Attachment: ${1}
Width: ${2} -->
```
And attach any image with the following
```markdown
![Example](../images/example.png)<!-- 300 -->
```
The width will be the commented html after the image (in this case 300px).
## Installation
### Homebrew