Typst Fumadocs

Highlight

Documentation for the `highlight` function.

Highlights text with a background color.

Example

Loading compiler...
#highlight(
  fill: none | color | gradient | tiling,
  stroke: none | length | color | gradient | stroke | tiling | dictionary,
  top-edge: length | str,
  bottom-edge: length | str,
  extent: length,
  radius: relative | dictionary,
  body
) -> content

Parameters

Prop

Type

On this page