# @cloudflare/util-markdown

> Cloudflare Markdown Util

Latest version **1.2.19** (published 2026-06-30) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install @cloudflare/util-markdown
pnpm add @cloudflare/util-markdown
yarn add @cloudflare/util-markdown
bun add @cloudflare/util-markdown
```

## Health

**Score 50/100 (C)** — status: active.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.2.19 |
| Published | 2026-06-30 |
| First published | 2018-05-09 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 10.5 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| Author | James Kyle <jkyle@cloudflare.com> |
| Maintainers | cf-ci-write, dash_service_account, wrangler-publisher, cf-npm-publish |

## Links

- npm: https://www.npmjs.com/package/@cloudflare/util-markdown
- npm.io page: https://npm.io/package/@cloudflare/util-markdown

## Dependencies (2)

- [marked](https://npm.io/package/marked.md) ^1.2.0
- [lodash.memoize](https://npm.io/package/lodash.memoize.md) ^4.0.3

## Recent versions

- 1.2.19 (latest) — 2026-06-30
- 1.2.18 — 2026-01-22
- 1.2.17 — 2026-01-21
- 1.2.16 — 2025-10-03
- 1.2.15 — 2021-10-28
- 1.2.14 — 2021-10-22
- 1.2.13 — 2021-10-21
- 1.2.12 — 2021-04-23
- 1.2.11 — 2020-04-27
- 1.2.9 — 2020-02-12
- 1.2.8 — 2020-02-12
- 1.2.7 — 2020-02-02
- 1.2.5 — 2020-02-01
- 1.2.4 — 2020-02-01
- 1.2.3 — 2019-10-15
- … 17 more at https://npm.io/package/@cloudflare/util-markdown/versions

## README

# cf-util-markdown

> Cloudflare Markdown Util

This utility library is a simple interface that hides away the markdown
implementation being used so that it can easily be swapped out for something
else.

## Installation

```sh
$ npm install cf-util-markdown
```

## Usage

```js
import markdown from 'cf-util-markdown';

markdown('# Hello World');
// >> <h1>Hello World</h1>
```

If for some **crazy crazy crazy** reason you need to stop the markdown from
being sanitized you may do the following:

**WARNING:** Be extremely careful about XSS vulnerabilities when doing this!

```js
markdown('<h1>Hello World</h1>', { __dangerouslyDontSanitizeMarkdown: true });
```

---
_Source: https://npm.io/package/@cloudflare/util-markdown · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
