Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/gfm/deps.ts>gfmHeadingId

Server-side GitHub Flavored Markdown rendering for Deno
Go to Latest
function gfmHeadingId
import { gfmHeadingId } from "https://deno.land/x/gfm@0.3.0/deps.ts";

Add id attribute to headings (h1, h2, h3, etc) like GitHub.

Parameters

optional
options: GfmHeadingIdOptions

Options for the extension

Returns

MarkedExtension

A marked.MarkedExtension | MarkedExtension to be passed to marked.use | marked.use()