Skip to Content
📧 Join the Teacharium waitlist to get access. 
User DocumentationBuild Your LessonAdd & Format Content

Write and format text

Add and style text content in your lesson steps.

Text components are the backbone of most lesson steps. You can add headings, body copy, and richly formatted content — and even make that text dynamic by embedding variables.

Adding a text component

Drag a Text component from the component sidebar onto your step canvas. You can place text anywhere on the canvas, including inside grid cells or other layout components.

Once placed, click the text to select it and start typing. A formatting toolbar appears at the top of the editor when text is selected.

Formatting options

The rich text toolbar gives you standard formatting controls:

  • Bold and italic for emphasis
  • Headings (H1, H2, H3) to create visual hierarchy
  • Bulleted and numbered lists
  • Inline code formatting

You can also mix styles within a single text component — bold a key term, add a heading above a paragraph, or create a bulleted list inside a longer explanation.

Embedding variables in text

Variables let you display dynamic values in text. There are a couple special options in the toolbar that let you insert numeric expressions, or even input fields.

Formatting numbers

A numeric expression shows its full result, so 10 / 3 shows as 3.3333333333. To control how it looks, click the expression and fill in Number format:

FormatValueShows
03.64
0.001.51.50
0.##1.51.5
#,##01234512,345
$#,##0.001234.5$1,234.50
0.# kg2.252.3 kg
  • 0 is a digit that’s always shown.
  • # is a digit that’s shown only when needed.
  • A comma in the whole-number part groups thousands.
  • Any other text, such as $ or kg, is shown as typed. % is shown as typed; it doesn’t multiply by 100.

Divide by (scale) divides the value before formatting. It’s for variables stored in a smaller unit, such as cents (see Exact decimals).

In string expressions and SVG markup, use the format helper instead. Give it the variable, the pattern and an optional scale:

{{format price_cents "$#,##0.00" 100}}

Adjusting margins and spacing

Select a text component and open the Style panel on the right to adjust margins. You can add top and bottom margin to create breathing room between components without needing to add blank spacer components.

Margin adjustments are especially useful when stacking multiple text blocks on a step — you can tighten spacing between related content and add space before a new section.