Skip to the content.

Guide to inline text formatting and markdown support in Chalk.

Inline Formatting

Inline markdown formatting is supported within formatted-string attribute values and other content areas:

Bold

element(
    description: **This text will be bold**
)

Italic

element(
    description: *This text will be italic*
)

Code

element(
    description: Use the `compile()` function
)
element(
    description: Visit [GitHub](https://github.com)
)

Math

element(
    formula: $E = mc^2$
)

Next Steps