The <markdown> object displays rich text written in Markdown: headings, bold, italic, lists. It is handy for a long block of text — an information page, theme credits, a notice — that you do not want to lay out object by object.
<markdown>was introduced in Recalbox 10.
This object has no predefined name: pick your own and add extra="true".
| Property | Type | Purpose |
|---|---|---|
pos |
Pair | Object position. See common properties. |
size |
Pair | Frame size. Text wraps inside it. |
origin |
Pair | Point of the object that pos refers to. |
rotation |
Float | Rotation angle in degrees, clockwise when positive. |
rotationOrigin |
Pair | Point the rotation happens around. Defaults to 0.5 0.5. |
text |
String | Markdown text to display. Accepts ${...} variables. |
path |
Path | Path of a Markdown file to load, instead of typing the text in text. |
fontPath |
Path | TrueType or OpenType font to use. |
fontSize |
Float | Font size, as a fraction of screen height. |
color |
Colour | Colour applied to the object. |
alignment |
String | Horizontal alignment: left, center or right. center also centres vertically. |
forceUppercase |
Boolean | Displays text in uppercase. |
lineSpacing |
Float | Line spacing, as a multiple of the font height. Defaults to 1.5. |
zIndex |
Float | Drawing order, from lowest to highest. |
disabled |
Boolean | Hides the object entirely. |
<markdown name="credits" extra="true" path="./texts/credits.md"
pos="0.1 0.15" size="0.8 0.7" fontSize="0.03" color="FFFFFFFF" zIndex="20" />