@wocart/theme / index / RichTextHtmlOptions
Interface: RichTextHtmlOptions
How richTextToHtml writes links.
Properties
href?
optionalhref?: (target) =>string
Turns a stored link target into the href to render — a theme passes its
own localizing function so a site path keeps the shopper's language. The
result is escaped; a target that fails the link rule never reaches it.
Parameters
target
string
Returns
string
inline?
optionalinline?:boolean
true: the first paragraph's text only, without a block element — for a field with inline: true.