semantic-release-bot 24bf47c732 chore(release): 18.0.12 [skip ci]
## [18.0.12](https://github.com/markedjs/marked/compare/v18.0.11...v18.0.12) (2026-09-07)

### Bug Fixes

* allow a tab before the closing sequence of an ATX heading ([#4084](https://github.com/markedjs/marked/issues/4084)) ([4417582](https://github.com/markedjs/marked/commit/4417582f35d69926f0778ee133c3af75b7f3f966))
* allow one more level of nested brackets in a link label ([#4064](https://github.com/markedjs/marked/issues/4064)) ([37b28d8](https://github.com/markedjs/marked/commit/37b28d8f640e39c9680e24b83fe7828dd111073d))
* do not add a newline to an empty code block ([#4073](https://github.com/markedjs/marked/issues/4073)) ([23b1706](https://github.com/markedjs/marked/commit/23b1706a0e19e354d0dd0e82ba93fb73e11c6f5c))
* escape character references in autolink destinations ([#4053](https://github.com/markedjs/marked/issues/4053)) ([8f432f0](https://github.com/markedjs/marked/commit/8f432f0ef219439cb1b5efdb86018aee0e44a141))
* reject GFM email autolink when the domain ends in _ or - ([#4063](https://github.com/markedjs/marked/issues/4063)) ([df57534](https://github.com/markedjs/marked/commit/df575341940389880afde6372ae5aa19bd9eb205))
* reject invalid characters in HTML tag names ([#4083](https://github.com/markedjs/marked/issues/4083)) ([300bb1d](https://github.com/markedjs/marked/commit/300bb1dce07bc262d74778b28bd6644770269be0))
* remove up to the fence indentation from each content line ([#4074](https://github.com/markedjs/marked/issues/4074)) ([0244f08](https://github.com/markedjs/marked/commit/0244f08d6253993fff0755c3edece62002692b31))
2026-09-07 20:38:11 +00:00
2018-04-05 11:36:07 -04:00
2021-11-02 09:40:27 -05:00
2026-09-07 20:38:11 +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%