Marks the literal as markdown, so that editors and other tools handle it accordingly.
The literal is realigned as dedent does, so markdown laid out to match the indentation of the surrounding
code retains the block structure CommonMark infers from leading whitespace.
Parameters
template: TemplateStringsArray
The literal sections of the markdown content
...values: unknown[]
The values interpolated between the literal sections
Returns string
The assembled template with the line terminators normalised, the outer blank lines dropped and the shared
leading whitespace removed from every line
See
text for the companion tag marking unmarked content
Tags a template literal as Markdown content.
Marks the literal as markdown, so that editors and other tools handle it accordingly.
The literal is realigned as dedent does, so markdown laid out to match the indentation of the surrounding code retains the block structure CommonMark infers from leading whitespace.