Skip to main content

Function: linkToHeader()

linkToHeader(header, linkText?): string

Function to create a link to a header within the same markdown file.

Parameters

header: string

Which header to link to.

linkText?: string

Optional text to display for the link.

Returns

string

The markdown link.

Defined in

lib/markdown.ts:690