Skip to main content
Home

Built and signed on GitHub Actions

🖨️ Render markdown to HTML using the unified ecosystem.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
94%
Published
2 months ago (2.0.3)

Functions

f
create

Create a new HTML sanitization plugin.

f
directive

Create a new custom directive.

Interfaces

I
AstComment

Represents an HTML Comment.

I
AstData

Information associated by the ecosystem with the node.

I
AstDocType

Represents an HTML DocumentType.

I
AstElement

Element represents an HTML Element.

I
AstElementContentMap

This map registers all node types that may be used as content in an element. These types are accepted inside element nodes.

I
AstLiteral

Nodes in hast containing a value.

I
AstNode

Syntactic units in unist syntax trees are called nodes.

I
AstParent

Node in hast containing other nodes.

I
AstPoint

One place in a source file.

I
AstPosition

Location of a node in a source file.

I
AstProperties

Represents information associated with an element.

I
AstRoot

Root represents a document. Can be used as the root of a tree, or as a value of the content field on a 'template' Element, never as a child.

I
AstRootContentMap

This map registers all node types that may be used as top-level content in the document. These types are accepted inside root nodes.

I
AstText

Represents an HTML Text.

Type Aliases

T
AstContent

Represents a root or element node.

T
AstElementContent

Represents an element node content.

T
AstNodeData

Util for extracting type of Node.data.

T
AstRootContent

Represents a root node content.

Variables

v
default

Add anchors to headings and autolink them.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

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

pnpm i jsr:@libs/markdown
or (using pnpm 10.8 or older)
pnpm dlx jsr add @libs/markdown

Import symbol

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

Add Package

yarn add jsr:@libs/markdown
or (using Yarn 4.8 or older)
yarn dlx jsr add @libs/markdown

Import symbol

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

Add Package

vlt install jsr:@libs/markdown

Import symbol

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

Add Package

npx 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";