text, it accepts inline content. That is a string, one inline node,
or an array mixing both.
The Inline union
Bold text, rendered as a real bold weight from the variable font.
Emphasis. The bundled fonts are upright only, so emphasis renders upright. See
Fonts and weights.
Struck through text.
A hyperlink to
href.Inline monospace code.
Nodes nest
Inline nodes nest, so a link can contain a formula and a strong run can contain a link. Thetext of any node is itself inline content.
Markdown shortcuts
When markdown is enabled, plain strings also honor**bold**, *italic*, ~~strike~~, and
$inline math$. Markdown parsing is on by default in Doc.
Structured inline nodes always format regardless of the markdown flag, and they are the
reliable path for generated content. Reach for markdown shortcuts in hand written prose and
for structured nodes when text is assembled programmatically.