strikeElementElementElement functions can be customized with set and show rules.
Element
Element functions can be customized with
set and show rules.Strikes through text.
Example
This is #strike[not] relevant.

ParameterParameterParameters are input values for functions. Specify them in parentheses after the function name.
Parameter
Parameters are input values for functions. Specify them in parentheses after the function name.
stroke
How to stroke the line.
If set to auto, takes on the text's color and a thickness defined in
the current font.
Note: Please don't use this for real redaction as you can still copy paste the text.
Show example
This is #strike(stroke: 1.5pt + red)[very stricken through]. \
This is #strike(stroke: 10pt)[redacted].

Default value: auto
offset
The position of the line relative to the baseline. Read from the font
tables if auto.
This is useful if you are unhappy with the offset your font provides.
Show example
#set text(font: "Inria Serif")
This is #strike(offset: auto)[low-ish]. \
This is #strike(offset: -3.5pt)[on-top].

Default value: auto
extentSettableSettableSettable parameters can be set using the set rule, changing the default value used thereafter.
Settable
Settable
Settable parameters can be set using the
set rule, changing the default value used thereafter.The amount by which to extend the line beyond (or within if negative) the content.
Show example
This #strike(extent: -2pt)[skips] parts of the word.
This #strike(extent: 2pt)[extends] beyond the word.

Default value: 0pt
backgroundSettableSettableSettable parameters can be set using the set rule, changing the default value used thereafter.
Settable
Settable
Settable parameters can be set using the
set rule, changing the default value used thereafter.Whether the line is placed behind the content.
Show example
#set strike(stroke: red)
#strike(background: true)[This is behind.] \
#strike(background: false)[This is in front.]

Default value: false
bodyRequiredRequiredRequired parameters must be specified when calling the function.PositionalPositionalPositional parameters can be set by specifying them in order, omitting the parameter name.
Required
Required
Required parameters must be specified when calling the function.
Positional
Positional
Positional parameters can be set by specifying them in order, omitting the parameter name.
The content to strike through.