Skip to main content

Function: codeBlock()

codeBlock(contents, language?): string

Function to create a code block.

Parameters

contents: string

The code to include in the block.

language?: string

The language the code is written in.

Returns

string

Markdown code block.

Defined in

lib/markdown.ts:210