text

.text  text:{InlineMarkdownContent} \
size:{TextTransformData.Size? = null} \
weight:{TextTransformData.Weight? = null} \
style:{TextTransformData.Style? = null} \
decoration:{TextTransformData.Decoration? = null} \
case:{TextTransformData.Case? = null} \
variant:{TextTransformData.Variant? = null} \
script:{TextTransformData.Script? = null} \
color:{Color? = null} \
url:{String? = null} \
classname:{String? = null}
-> Node

Creates an inline text node with specified formatting and transformation.

Parameters

text

inline content to transform

size

font size, or default if not specified

Values

  • tiny
  • small
  • normal
  • medium
  • large
  • larger
  • huge
weight

font weight, or default if not specified

Values

  • normal
  • bold
style

font style, or default if not specified

Values

  • normal
  • italic
decoration

text decoration, or default if not specified

Values

  • none
  • underline
  • overline
  • underoverline
  • strikethrough
  • all
case

text case, or default if not specified

Values

  • none
  • uppercase
  • lowercase
  • capitalize
variant

font variant, or default if not specified

Values

  • normal
  • smallcaps
script

vertical script position (sub for subscript, sup for superscript), or default if not specified

Values

  • sub
  • sup
color

text color, or default if not specified

url

optional URL to link the text to. If empty (but specified), the URL will match the text content

classname
  • Optional

CSS class name to apply to the element, if supported by the renderer. None if not specified.