figure

.figure caption:{String? = null}
ref:{String? = null}
body:{MarkdownContent}
-> Node

Inserts content in a figure block, with an optional caption.

If either caption or ref is set, the figure will be numbered according to the figures numbering rule.

Return

the new Figure node

Parameters

caption

optional caption of the figure

ref

optional ID for cross-referencing via ref

body

content of the figure