Typography Tags
Control font weight, style, decoration, and font family within any text element (p, th, td, li, h1–h6).
Bold
{ "p": "This is [b]bold text[/b] in a sentence." }
Long form: [bold]...[/bold] · HTML alias: [strong]...[/strong]
Italic
{ "p": "This is [i]italic text[/i] in a sentence." }
Long form: [italic]...[/italic] · HTML aliases: [em]...[/em], [cite]...[/cite]
Bold italic
{ "p": "This is [bi]bold italic[/bi] in a sentence." }
Also accepted: [ib], [bolditalic], [italicbold]
Underline
{ "p": "This is [u]underlined text[/u] in a sentence." }
Long form: [underline]...[/underline] · HTML alias: [ins]...[/ins]
[ins] is a plain underline. It does not mark the text as an insertion: neither the PDF nor the DOCX records a
tracked change.
Strikethrough
{ "p": "Old price: [s]$99[/s] new price: $79" }
Long form: [strike]...[/strike] · HTML alias: [del]...[/del]
[del] is a plain strikethrough, with no change tracking either: the struck words stay in the text, and the DOCX shows
them as ordinary struck text, not as a deletion to accept or reject.
Strikethrough composes with underline — both decorations render on the same run:
{ "p": "[u][s]deprecated link[/s][/u]" }
All caps
Render text uppercase while the payload keeps its own case — useful for display headings, eyebrow labels, and stylized acronyms, where the wording is written and edited once, in mixed case.
{ "p": "[caps]quarterly business review[/caps]" }
The example renders QUARTERLY BUSINESS REVIEW. In the PDF the text is uppercase as drawn, so a copy/paste from the page gives the capitals too; the payload stays mixed-case. In DOCX the words keep their own case and Word shows them in capitals, so a copy from Word gives the mixed-case words.
[caps] composes with the rest of the typography toolkit:
{ "p": "[b][caps][ls, 1.5][color, #888888]executive summary[/color][/ls][/caps][/b]" }
That's a tracked-out, gray, bold all-caps eyebrow heading from a single mixed-case source string — change the wording without retyping in caps.
[caps] changes the letters themselves. For small capitals (a defined term in a contract, an acronym that should sit
in the line rather than shout), use the fontVariantCaps style key through a [span, style]:
the face's own small capitals are drawn, made from its capitals where it has none, and a copy from the PDF gives the
words as written. See Small capitals, figures and ligatures.
Font switch
Switch to a registered custom font family mid-text. The font must be declared in the document's fonts property.
{
"fonts": {
"NotoSerif": { "regular": "fonts/NotoSerif-Regular.ttf" }
},
"content": [
{ "p": "Default sans-serif [font, NotoSerif]switched to serif[/font] back to default." }
]
}
This is how icon fonts work — Font Awesome ships with the platform, so declare it by its vendored/ path (no upload needed), then inline the icon character:
{
"fonts": {
"FA": { "regular": "vendored/fa-solid-900.otf" }
},
"content": [
{ "p": "Status: [font, FA]\uf00c[/font] Approved" }
]
}
Combining
All typography tags nest freely:
{ "p": "[b]Bold with [i]bold italic[/i] inside[/b]" }
{ "p": "[u][b]Bold underlined[/b] just underlined[/u]" }
{ "p": "[font, NotoSerif][b]Bold serif[/b] regular serif[/font]" }
Example: styled invoice line
{ "p": "[b]Invoice #INV-2026-0042[/b] — [i]$data.client.name[/i] — [u]Amount Due: $data.invoice.total[/u]" }