⚠️ This is pre-release documentation for v3. For stable docs, visit v2.
Skip to content

@tmlmt/cooklang-parser / TextItem

Interface: TextItem

Represents a text item in a recipe step.

Properties

attribute?

optional attribute: TextAttribute

The formatting attribute of the text item, if any.


href?

optional href: string

The URL target, only present when attribute is "link".


type

type: "text"

The type of the item.


value

value: string

The content of the text item.