Skip to main content

Built and signed on GitHub Actions

🖨️ Render markdown to HTML using the unified ecosystem.

This package works with Cloudflare Workers, Deno, BrowsersIt is unknown whether this package works with Node.js, Bun
This package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score
100%
Published
2 weeks ago (1.2.2)

Functions

f
createSanitization

Create a new HTML sanitization plugin.

f
directive

Create a new custom directive.

Variables

v
anchors

Add anchors to headings and autolink them.

v
directives

Add support for custom directives.

v
emojis

Add support for emojis.

v
frontmatter

Support for frontmatter.

v
gfm

Enable GitHub Flavored Markdown (GFM).

v
highlighting

Highlight code blocks.

v
linebreaks

Force line-breaks to be hard-breaks.

v
markers

Add support for markers.

v
math

Add support for math.

v
mermaid

Add support for Mermaid diagrams.

v
ruby

Add support for ruby text.

v
sanitize

Sanitize HTML.

v
uncomments

Remove HTML comments.

Add Package

deno add jsr:@libs/markdown

Import symbol

import * as mod from "@libs/markdown/plugins";

---- OR ----

Import directly with a jsr specifier

import * as mod from "jsr:@libs/markdown/plugins";

Add Package

npx jsr add @libs/markdown

Import symbol

import * as mod from "@libs/markdown/plugins";

Add Package

yarn dlx jsr add @libs/markdown

Import symbol

import * as mod from "@libs/markdown/plugins";

Add Package

pnpm dlx jsr add @libs/markdown

Import symbol

import * as mod from "@libs/markdown/plugins";

Add Package

bunx jsr add @libs/markdown

Import symbol

import * as mod from "@libs/markdown/plugins";