Preview environment

function heading

export declare function heading<Content extends string>(content: Content, level?: HeadingLevel.One): `# ${Content}`;

Formats the content into a heading level.

Type Parameters

Content extends string

This is inferred by the supplied content

Parameters

content: Content
The content to wrap
optional
level?: HeadingLevel.One
The heading level