dependabot[bot] b01ae92d1a
chore(deps-dev): Bump @babel/preset-env from 7.17.10 to 7.18.0 (#2477)
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.17.10 to 7.18.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.18.0/packages/babel-preset-env)

---
updated-dependencies:
- dependency-name: "@babel/preset-env"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-23 14:36:18 -05:00
2020-08-10 10:11:14 -04:00
2022-03-30 10:42:54 -05:00
2022-05-17 13:30:17 +00:00
2021-11-02 09:32:17 -05:00
2018-04-05 11:36:07 -04:00
2019-11-05 15:31:11 -06:00
2020-08-15 19:42:22 -04:00
2021-11-02 09:40:27 -05:00
2021-11-02 09:32:17 -05:00
2022-03-30 10:42:54 -05:00
2021-11-02 09:32:17 -05:00
2021-11-02 09:32:17 -05:00
2021-11-02 09:32:17 -05:00
2022-05-17 13:30:17 +00:00
2020-08-10 19:28:17 -05:00
2020-08-29 17:55:07 -04:00

Marked

npm gzip size install size downloads github actions snyk

  • 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
  • 🌐 works in a browser, on a server, or from a command line interface (CLI)

Demo

Checkout 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: Not IE11 :)

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

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/marked.min.js"></script>
  <script>
    document.getElementById('content').innerHTML =
      marked.parse('# Marked in the browser\n\nRendered by **marked**.');
  </script>
</body>
</html>

License

Copyright (c) 2011-2022, Christopher Jeffrey. (MIT License)

Description
A markdown parser and compiler. Built for speed.
Readme 18 MiB
Languages
JavaScript 35%
TypeScript 35%
HTML 30%