---
title: "markdown"
canonical: "https://support.appfire.com/space/PSCONF/1461387301/markdown"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | markdown(html/xml) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Routine that translate HTML/XML markup from a passed string and returns markdown version.

Routine that translate HTML/XML markup from a passed string and returns markdown version.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | html/xml | String | Yes | The text itself, which may contain HTML or XML markup. |

## Return Type

**String**

## Example

```javascript
string html = "<p>Some text</p>";
string markdown = markdown(html);
print(markdown);
```

## See also

> Macro (contentbylabel)