/** * Escaping and serialization. * * Escaping happens at emission, per context. Nothing here is applied at parse * time: a value that is safe as text is not automatically safe as an attribute, * in a URL, or inside a `script` element, and the compiler must not pretend * otherwise. */ /** Escape text content for an element body. */ export declare function escapeText(value: string): string; /** * Escape prose text and render each backtick pair as inline ``. * * This is the only markup prose text can produce: no other Markdown is * recognized. Every segment, inside or outside a code span, goes through * `escapeText` before it is wrapped, so a span such as `` `