Leonardo Miceli
Leonardo Miceli

Reputation: 13

How to make Callout Blocks in R quarto work properly?

I'm working to render a quarto html article and want the standart callout block to shows up as it should.

The simple example from the quarto docs (https://quarto.org/docs/authoring/callouts.html) is not working!

My quarto file yaml is:

---
title: "Callout blocks"
date: "2025-02-20"
format:
  html:
    toc: true
    html-math-method: katex
    css: styles.css
--- 

::: {.callout-note}
Note that there are five types of callouts, including:
`note`, `warning`, `important`, `tip`, and `caution`.
:::

::: {.callout-tip}
## Tip with Title

This is an example of a callout with a title.
:::

``

The html file is produced after calling the rmarkdow::render function but the format of the calling box is not correctly, no fomat at all, just a simple text.

I am running R with anaconda and with VS code editor under ubuntu 24.04 .1 LTS

May be some pre-configuration is missing,librarys or what else! There is no error message at all. How could I solve this?  

Upvotes: 0

Views: 40

Answers (1)

Quinton.Quagliano
Quinton.Quagliano

Reputation: 836

Quarto and Rmarkdown are different frameworks, so you'll want to use the right function to render the document.

If you are currently using rmarkdown::render() to produce this document, you should switch to using quarto::quarto_render(). See docs for this function here. That way, all the quarto processing and features should work. If that doesn't fix it, then we can troubleshoot further.

Upvotes: 0

Related Questions