Preview environment

function spoiler

export declare function spoiler<Content extends string>(content: Content): `||${Content}||`;

Formats the content into a spoiler.

Type Parameters

Content extends string

This is inferred by the supplied content

Parameters

content: Content
The content to wrap