Markup interface

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.

Signature:

export interface Markup 

Remarks

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.

Properties

Property Modifiers Type Description
[cst]?   CST.Expression (BETA) (Optional)
attributes?   Attribute[] (BETA) (Optional)
kind   ‘open’ | ‘standalone’ | ‘close’ (BETA)
name   string (BETA)
options?   Option[] (BETA) (Optional)
type   ‘markup’ (BETA)