Skip to content

Function: escProse() ​

ts
function escProse(text): string;

Defined in: emitters/markdown/src/render.ts:227

Escape prose for VitePress markdown (which compiles through Vue's SFC parser): a raw <tag> reads as an HTML element and as interpolation. Backticked code spans are exempt (Vue skips them), so only free prose is escaped.

Parameters ​

text ​

string

Returns ​

string

Released under the MIT License