block
ShowableShowable functions can be customized with show
rules.
Showable functions can be customized with
show
rules.A block-level container that places content into a separate flow.
This can be used to force elements that would otherwise be inline to become block-level. This is especially useful when writing show rules.
Example
#[
#show heading: it => it.title
= No block
Some text
]
#[
#show heading: it => block(it.title)
= Block
Some more text
]

ParametersParameters are the inputs to a function. They are specified in parentheses after the function name.
Parameters are the inputs to a function. They are specified in parentheses after the function name.
block()
body
The contents of the block.
spacing
relative lengthfractionSettableSettable parameters can be customized for all following uses of the function with a set
rule.
Settable parameters can be customized for all following uses of the function with a
set
rule.The spacing around this block.
above
relative lengthfractionSettableSettable parameters can be customized for all following uses of the function with a set
rule.
Settable parameters can be customized for all following uses of the function with a
set
rule.The spacing between this block and its predecessor. Takes precedence over
spacing
.
The default value is 1.2em
.
below
relative lengthfractionSettableSettable parameters can be customized for all following uses of the function with a set
rule.
Settable parameters can be customized for all following uses of the function with a
set
rule.The spacing between this block and its successor. Takes precedence
over spacing
.
The default value is 1.2em
.