semantic-release-bot 634f810644 chore(release): 18.0.13 [skip ci]
## [18.0.13](https://github.com/markedjs/marked/compare/v18.0.12...v18.0.13) (2026-09-12)

### Bug Fixes

* allow tabs in the thematic break that ends a list item ([#4087](https://github.com/markedjs/marked/issues/4087)) ([afbb27c](https://github.com/markedjs/marked/commit/afbb27c7ee753af07fb1a5c18031fc3068261b31))
* avoid O(n^2) scanning in reflinkSearch ([#4090](https://github.com/markedjs/marked/issues/4090)) ([c6a25bb](https://github.com/markedjs/marked/commit/c6a25bb2a9d14f839cf2fd9abe4e4c7c3eece25b))
* case fold reference link labels ([#4077](https://github.com/markedjs/marked/issues/4077)) ([aed9336](https://github.com/markedjs/marked/commit/aed933680dc146d868cb4573f393367abde04aae))
* drop the leading whitespace after a hard line break ([#4075](https://github.com/markedjs/marked/issues/4075)) ([123ce04](https://github.com/markedjs/marked/commit/123ce04b813e0cd87a6dcb2326112ffb54022069))
* match html block start conditions when ending a list item ([#4072](https://github.com/markedjs/marked/issues/4072)) ([c2facac](https://github.com/markedjs/marked/commit/c2facac8d455c87034f82639c900242de288aca0))
* respect raw tokens when closing link labels ([#4066](https://github.com/markedjs/marked/issues/4066)) ([ef394f7](https://github.com/markedjs/marked/commit/ef394f71df54ab9d4057821881e866366eaacf11))
* strip a tab that follows spaces in an indented code block ([#4080](https://github.com/markedjs/marked/issues/4080)) ([dbb393d](https://github.com/markedjs/marked/commit/dbb393deebc5b6982cb29d7415e8a8ba5555b83a))
2026-09-12 21:42:54 +00:00
2018-04-05 11:36:07 -04:00
2021-11-02 09:40:27 -05:00
2026-09-12 21:42:54 +00:00
2023-08-09 23:33:46 -06:00
2020-08-29 17:55:07 -04:00

Marked

npm install size downloads github actions snyk inspect.software

  • ⚡ built for speed
  • ⬇️ low-level compiler for parsing markdown without caching or blocking for long periods of time
  • ⚖️ light-weight while implementing all markdown features from the supported flavors & specifications
  • 🛠️ easily adaptable with custom extensions
  • 🌐 works in a browser, on a server, or from a command line interface (CLI)

Demo

Check out the demo page to see Marked in action ⛹️

Docs

Our documentation pages are also rendered using marked 💯

Also read about:

Compatibility

Node.js: Only current and LTS Node.js versions are supported. End of life Node.js versions may become incompatible with Marked at any point in time.

Browser: Baseline Widely Available

Installation

CLI:

npm install -g marked

In-browser:

npm install marked

Usage

DOMPurify.sanitize(marked.parse(`<img src="x" onerror="alert('not happening')">`));

CLI

# Example with stdin input
$ marked -o hello.html
hello world
^D
$ cat hello.html
<p>hello world</p>
# Print all options
$ marked --help

Node.js

import { marked } from 'marked';
const html = marked.parse('# Marked in Node.js');
console.log(html);

Browser

<!doctype html>
<html>
<head>
  <meta charset="utf-8"/>
  <title>Marked in the browser</title>
</head>
<body>
  <div id="content"></div>
  <script src="https://cdn.jsdelivr.net/npm/marked/lib/marked.umd.js"></script>
  <script>
    document.getElementById('content').innerHTML =
      marked.parse('# Marked in the browser\n\nRendered by **marked**.');
  </script>
</body>
</html>

or import esm module

<script type="module">
  import { marked } from "https://cdn.jsdelivr.net/npm/marked/lib/marked.esm.js";
  document.getElementById('content').innerHTML =
    marked.parse('# Marked in the browser\n\nRendered by **marked**.');
</script>

License

Copyright (c) 2018+, MarkedJS. (MIT License) Copyright (c) 2011-2018, Christopher Jeffrey. (MIT License)

S
Description
Lustro github.com/markedjs/marked
Readme Multiple Licenses
22 MiB
Languages
TypeScript 37.1%
JavaScript 36.6%
HTML 26.3%