Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.2.5/deps.ts";

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

Parameters

optional
options: GfmHeadingIdOptions

Options for the extension

Returns

marked.MarkedExtension

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