Skip to contents

Assembles the ::: fenced div that Quarto renders as a callout, with blank lines around the body so that markdown inside it parses correctly.

Usage

callout(body, title = "Your Turn", type = "note")

Arguments

body

Character vector of markdown lines for the callout body.

title

Callout title, shown in the rendered header.

type

Callout type: one of "note", "tip", "warning", "caution", or "important".

Value

A character vector of markdown lines.

Examples

cat(callout("1. Render this document to HTML."), sep = "\n")
#> ::: {.callout-note title="Your Turn"}
#> 
#> 1. Render this document to HTML.
#> 
#> :::
cat(callout("Check your R version.", title = "Before you start", type =
"warning"), sep = "\n")
#> ::: {.callout-warning title="Before you start"}
#> 
#> Check your R version.
#> 
#> :::