Custom Callout Examples
This document provides examples of custom callouts.
Document YAML
The following YAML front matter is used to define custom callouts in this document:
---
title: "Custom Callout Examples"
format: html
custom-callout:
todo:
icon-symbol: "📝"
color: "pink"
jjb:
icon: true
title: "fix for JJB"
icon-symbol: "⚠️"
color: "#FFA500"
test:
title: "Test feature"
icon: true
color: "#801410"
thumbs-up:
title: "Great job!"
icon: true
icon-symbol: "fa-thumbs-up"
color: "#008000"
filters:
- custom-callout
---
Sample Custom Callouts
The following examples demonstrate the use of custom callouts in Quarto documents using the defined styles in the YAML front matter.
Original
Hello there!
Please address this issue …
Let’s do a feature test!
Hey, a FontAwesome icon!
::: todo
Hello there!
:::
::: jjb
Please address this issue ...
:::
::: test
Let's do a feature test!
:::
::: thumbs-up[FontAwesome](https://fontawesome.com/) icon!
Hey, a :::
Sample Custom Callouts with Options
The following examples demonstrate the use of custom callouts with additional options.
Title
Demo of title="Todo with a Custom Title!"
.
Demo of title
defined as a markdown header in content.
::: {.todo title="Todo with a Custom Title!"}`title="Todo with a Custom Title!"`.
Demo of
:::
::: {.todo}## Todo with Title Defined in Content
`title` defined as a markdown header in content.
Demo of :::
Icon
::: {.todo icon="false" title="Todo with No Icon"}`icon="false"`.
Demo of :::
Collapse
Demo of collapse="true"
.
::: {.todo collapse="true" title="Collapsed Todo with Title"}`collapse="true"`.
Demo of :::
Appearance
Demo of appearance="simple"
.
Demo of appearance="simple"
and collapse="true"
.
::: {.todo appearance="simple" title="Todo with Simple Appearance"}`appearance="simple"`.
Demo of
:::
::: {.todo appearance="simple" collapse="true" title="Todo with Simple Appearance and Collapse"}`appearance="simple"` and `collapse="true"`.
Demo of
:::
::: {.todo appearance="minimal" title="Todo with Minimal Appearance"}`appearance="minimal"`.
Demo of
:::
::: {.todo appearance="minimal" collapse="true" title="Todo with Minimal Appearance and Collapse"}`appearance="minimal"` and `collapse="true"`.
Demo of :::
Original Quarto Callout
This section provides examples of the built-in Quarto Callout for a Note, e.g. .callout-note
.
Hello!
Demo of title="Note with Custom Title"
Demo of title
defined as a markdown header in content.
Demo of collapse="true"
Demo of appearance="simple"
.
Demo of appearance="Simple"
and collapse="true"
.
::: {.callout-note}
Hello!
:::
::: {.callout-note title="Note with Custom Title"}`title="Note with Custom Title"`
Demo of
:::
::: {.callout-note}## Note with Title Defined in Content
`title` defined as a markdown header in content.
Demo of
:::
::: {.callout-note icon="false" title="Note with Title and No Icon"}`icon="false"`
Demo of
:::
::: {.callout-note collapse="true" title="Collapsed Note with Title"}`collapse="true"`
Demo of
:::
::: {.callout-note appearance="simple" title="Simple Note Appearance with Title"}`appearance="simple"`.
Demo of
:::
::: {.callout-note appearance="simple" collapse="true" title="Simple Note Appearance with Title and Collapse"}`appearance="Simple"` and `collapse="true"`.
Demo of
:::
::: {.callout-note appearance="minimal" title="Minimal Note Appearance with Title"}`appearance="minimal"`.
Demo of
:::
::: {.callout-note appearance="minimal" collapse="true" title="Minimal Note Appearance with Title and Collapse"}`appearance="minimal"` and `collapse="true"`.
Demo of :::