The Markdown from an attachment macro renders Markdown content from attachments located in the same or different pages and/or spaces.
...
Info |
---|
The Markdown content is rendered based on the permissions of the page and/or space. Any attachment available in a public location can be accessed and the Markdown content can be rendered. Currently, any links or images in Markdown content referring to a private repository, or a location that must be logged in to, cannot be accessed and thus, rendered. |
Basic use
This macro can be deployed using one of the following methods:
Selected from the Macro Browser | Markdown from an attachment |
---|---|
Markup Shortcut | {markdown-attachment} |
Parameters
Macro specific parameters
Macro |
---|
Editor Label |
---|
Default | Description |
---|
- ^attachment
- page^attachment
- space:page^attachment
Refers to the location where Markdown content is present.
- ^attachment: Read content from an attachment to the page name where the macro is located.
- page^attachment: Read content from an attachment to the specified page name.
- space:page^attachment: Read content from an attachment to the page name available in the specified space name.
Macro Parameter | |||
---|---|---|---|
Page for attachment | Attachment on the same page | Enter the page and/or space name, that contains Markdown content, in the text box. | page |
Name of attachment | <required> | Enter the name and the extension of the file with the Markdown content in the text box. This is a mandatory field. The following Markdown file extensions are applicable:
| name |
File encoding | UTF-8 |
Specify the encoding for an external file, if different from the default system handling. | encoding |
Common parameters
The following parameters are available for all Markdown macros:
Include Page | ||||
---|---|---|---|---|
|
Screenshot