Go to file
dependabot[bot] 5ca0f6cb54
chore(deps-dev): Bump rollup from 4.1.5 to 4.3.0 (#3082)
Bumps [rollup](https://github.com/rollup/rollup) from 4.1.5 to 4.3.0.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v4.1.5...v4.3.0)

---
updated-dependencies:
- dependency-name: rollup
  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>
2023-11-06 08:58:00 -07:00
.devcontainer
.github chore(deps): Bump actions/setup-node from 3 to 4 (#3063) 2023-10-30 10:04:25 -06:00
.vscode fix: fix more types (#2893) 2023-08-19 16:55:56 -06:00
api
bin feat: add --no-clobber option to CLI (#3025) 2023-10-04 20:05:55 -06:00
docs docs: add marked-directive to known extensions (#3058) 2023-10-26 00:39:00 -06:00
man feat: add --no-clobber option to CLI (#3025) 2023-10-04 20:05:55 -06:00
src fix: fix emstrong unicode (#3070) 2023-11-01 22:27:17 -06:00
test fix: fix emstrong unicode (#3070) 2023-11-01 22:27:17 -06:00
.editorconfig
.eslintignore
.eslintrc.json
.gitattributes
.gitignore fix: Clean up files in repo (#2963) 2023-09-09 17:51:42 -06:00
.releaserc.json
bower.json
jasmine.json
LICENSE.md
package-lock.json chore(deps-dev): Bump rollup from 4.1.5 to 4.3.0 (#3082) 2023-11-06 08:58:00 -07:00
package.json chore(deps-dev): Bump rollup from 4.1.5 to 4.3.0 (#3082) 2023-11-06 08:58:00 -07:00
README.md docs: Correcting links to documentation (#3046) 2023-10-16 22:48:16 -06:00
rollup.config.js chore: add version and copyright to marked.min.js (#2976) 2023-09-10 09:05:00 -06:00
SECURITY.md docs: Update authors link in SECURITY.md (#3013) 2023-09-28 07:32:42 -06:00
tsconfig-type-test.json fix: fix more types (#2893) 2023-08-19 16:55:56 -06:00
tsconfig.json fix: noImplicitAny: true (#2891) 2023-08-09 23:33:46 -06:00
vercel.json

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)