Markdown

Renders styled text using the Markdown format, with optional inline images.

Properties

NameTypeDefaultDescription
partStringThe name of the part, where the markdown can be loaded from a file. For example: home.md which normally will be stored in the parts folders. Like parts-de|parts-en. The part for the actual language will be loaded automatically. That means in case of a mobile app the markdown will be loaded from parts-es in case Spanish is the selected language and parts-en if the selected language is English.
textStringThe Markdown content to render. Images using ‚![]()‘ are supported.
colorString#000000Text color. Example: ‚#333333‘ or color name like ‚onBackground‘.
fontSizeInt14Font size in sp.
fontWeightStringNormalFont weight. Example: Normal, Bold, Medium, etc.
textAlignStringLeftText alignment: Left, Center, Right, Justify.
paddingStartInt0Start padding in dp.
paddingTopInt0Top padding in dp.
paddingBottomInt0Bottom padding in dp.

Allowed Roots

← Back to Element Reference