Markup type

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Markup placeholders can span ranges of other pattern elements, or represent other inline elements.


export type Markup = MarkupOpen | MarkupStandalone | MarkupClose;

References: MarkupOpen, MarkupStandalone, MarkupClose


The name identifies the markup part, which will be included in the result along with any options.

When formatted to string, all markup will format as an empty string. To use markup, format to parts and post-process the formatted results.