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

<span style="color: #000000">The </span><span style="color: #000000">*Markdown-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">Parameters</span>

| <span style="color: #000000">**Macro browser label**</span> | <span style="color: #000000">**Default**</span> | <span style="color: #000000">**Description**</span> | <span style="color: #000000">**Macro parameter**</span> |
| --- | --- | --- | --- |
| <span style="color: #000000">Page for attachment</span> | <span style="color: #000000">current page</span> | <span style="color: #000000">Refers to the page where the Markdown file is present.</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">Name of the attachment with the file extension.</span> | <span style="color: #000000">*name*</span> |
| <span style="color: #000000">File encoding</span> | <span style="color: #000000">system default</span> | <span style="color: #000000">Encoding for an external file if different from the system default handling.</span> | <span style="color: #000000">*encoding*</span> |

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

> Macro (include)

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

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

| <span style="color: #000000">**Selected from the macro browser**</span> | <span style="color: #000000">*Markdown from an attachment*</span> |
| --- | --- |
| <span style="color: #000000">**Markup shortcut**</span> | <span style="color: #000000">*{markdown-attachment}*</span> |

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

- <span style="color: #000000">Example using an attachment on the same page named </span>*<span style="color: #000000">README.md</span>*<span style="color: #000000">:</span>

![image](media://662bfe09-8800-48a6-87bf-8c91304b1699)