---
title: "Markdown from an attachment macro - Cloud"
canonical: "https://support.appfire.com/space/MARKDOWN/72384991/Markdown%20from%20an%20attachment%20macro%20-%20Cloud"
format: markdown
---
> Macro (aura-html)

<span style="color: #000000">The </span>*<span style="color: #000000">Markdown from an attachment</span>*<span style="color: #000000"> macro renders Markdown content from attachments located in the same or different pages and/or spaces. </span>

> ℹ️ <span style="color: #000000">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, </span><span style="color: #000000">cannot be accessed and thus, rendered</span><span style="color: #000000">.</span>

<span style="color: #000000">Basic use</span>

<span style="color: #000000">This macro can be deployed using one of the following methods:</span>

| **Selected from the Macro Browser** | **Markdown from an attachment** |
| --- | --- |
| **Markup Shortcut** | **{markdown-attachment}** |

# <span style="color: #000000">Parameters</span>

## <span style="color: #000000">Macro specific </span><span style="color: #000000">parameters</span>

| <span style="color: #000000">**Macro Editor Label**</span> | <span style="color: #000000">**Default**</span> | <span style="color: #000000">**Description**</span> | **Macro Parameter** |
| --- | --- | --- | --- |
| <span style="color: #000000">Page for attachment</span> | <span style="color: #000000">Attachment on the same page</span> | <span style="color: #000000">Enter the page and/or space name, that contains Markdown content, </span><span style="color: #000000">in the text box</span><span style="color: #000000">.</span> | <span style="color: #000000">page</span> |
| <span style="color: #000000">Name of attachment</span> | <span style="color: #000000"><required></span> | <span style="color: #000000">Enter the name and the extension of the file with the Markdown content </span><span style="color: #000000">in the text box</span><span style="color: #000000">. This is a mandatory field.</span><br><span style="color: #000000">The following Markdown file extensions are applicable:</span><br>- <span style="color: #000000">**markdown**</span>
- <span style="color: #000000">**md**</span>
- <span style="color: #000000">**mdown**</span>
- <span style="color: #000000">**mkdn**</span>
- <span style="color: #000000">**mkd**</span>
- <span style="color: #000000">**mdwn**</span>
- <span style="color: #000000">**mdtext**</span>
- <span style="color: #000000">**txt**</span>
- <span style="color: #000000">**text**</span> | <span style="color: #000000">name</span> |
| <span style="color: #000000">File encoding</span> | <span style="color: #000000">UTF-8</span> | <span style="color: #000000">Specify the encoding for an external file, if different from the </span><span style="color: #000000">default </span><span style="color: #000000">system handling.</span> | <span style="color: #000000">encoding</span> |

## <span style="color: #000000">Common </span><span style="color: #000000">parameters</span>

<span style="color: #000000">The following parameters are available for all Markdown macros:</span>

> Macro (include)

# <span style="color: #000000">Screenshot</span>

![image](media://49f56e56-7e5e-40d2-b282-ff7d7ef2c06a)