# Module /text/cmark

CommonMark and GitHub Flavored Markdown compiler (to-html) supporting tables, strikethrough, and task lists.

```tangu
(use /text/cmark)
```

## Functions & symbols

### to-html

`(to-html markdown [options]) -> String`

Compiles Markdown (tables, strikethrough, task lists, heading attributes) to HTML (strips raw HTML unless `{:unsafe true}`).

| Parameter | Type | Optional | Description |
| :--- | :--- | :--- | :--- |
| `markdown` | `String` | no | CommonMark / GFM Markdown source string |
| `options` | `Map` | yes | Optional compiler flags {:unsafe Bool} |

```tangu
(cmark/to-html "# Hello\n\n**World**")
```
