Callouts' icon gets inherited following this rule:
html: Important > Caution > Warning > Tip > Note
revealjs: Caution > Tip > Warning > Important > Note
It's worst for revealjs than html where top banner can also inherit the colour of the parent.
typst and latex are fine.
docx does not support nested callouts. (stack trace not pretty but informative)
Stack trace
```txt
FATAL (/Users/mcanouil/Projects/quarto/quarto-cli/src/resources/filters/./quarto-post/docx.lua:95) An error occurred:
Found a nested callout in the document. Please fix this issue and try again.
Error running filter /Users/mcanouil/Projects/quarto/quarto-cli/src/resources/filters/main.lua:
...quarto/quarto-cli/src/resources/filters/./common/log.lua:30: attempt to call a nil value (global 'crash_with_stack_trace')
stack traceback:
...arto/quarto-cli/src/resources/filters/./common/error.lua:14: in function 'fail'
.../quarto-cli/src/resources/filters/./quarto-post/docx.lua:95: in function <.../quarto-cli/src/resources/filters/./quarto-post/docx.lua:7>
(...tail calls...)
...quarto/quarto-cli/src/resources/filters/./ast/render.lua:46: in local 'filter_fn'
...o/quarto-cli/src/resources/filters/./ast/customnodes.lua:154: in function <...o/quarto-cli/src/resources/filters/./ast/customnodes.lua:144>
(...tail calls...)
[C]: in ?
[C]: in method 'walk'
...o/quarto-cli/src/resources/filters/./ast/customnodes.lua:76: in function <...o/quarto-cli/src/resources/filters/./ast/customnodes.lua:65>
(...tail calls...)
.../quarto-cli/src/resources/filters/./ast/runemulation.lua:82: in local 'callback'
.../quarto-cli/src/resources/filters/./ast/runemulation.lua:100: in upvalue 'run_emulated_filter_chain'
.../quarto-cli/src/resources/filters/./ast/runemulation.lua:136: in function <.../quarto-cli/src/resources/filters/./ast/runemulation.lua:133>
stack traceback:
...o/quarto-cli/src/resources/filters/./ast/customnodes.lua:76: in function <...o/quarto-cli/src/resources/filters/./ast/customnodes.lua:65>
(...tail calls...)
.../quarto-cli/src/resources/filters/./ast/runemulation.lua:82: in local 'callback'
.../quarto-cli/src/resources/filters/./ast/runemulation.lua:100: in upvalue 'run_emulated_filter_chain'
.../quarto-cli/src/resources/filters/./ast/runemulation.lua:136: in function <.../quarto-cli/src/resources/filters/./ast/runemulation.lua:133>
ERROR: Error
at renderFiles (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/command/render/render-files.ts:350:23)
at eventLoopTick (ext:core/01_core.js:175:7)
at async render (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/command/render/render-shared.ts:102:18)
at async renderForPreview (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/command/preview/preview.ts:428:24)
at async render (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/command/preview/preview.ts:172:22)
at async preview (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/command/preview/preview.ts:189:18)
at async Command.actionHandler (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/command/preview/cmd.ts:424:7)
at async Command.execute (https://deno.land/x/cliffy@v1.0.0-rc.3/command/command.ts:1948:7)
at async Command.parseCommand (https://deno.land/x/cliffy@v1.0.0-rc.3/command/command.ts:1780:14)
at async quarto (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/quarto.ts:156:5)
```
Bug description
Callouts' icon gets inherited following this rule:
html
: Important > Caution > Warning > Tip > Noterevealjs
: Caution > Tip > Warning > Important > NoteIt's worst for
revealjs
thanhtml
where top banner can also inherit the colour of the parent.typst
andlatex
are fine.docx
does not support nested callouts. (stack trace not pretty but informative)Stack trace
```txt FATAL (/Users/mcanouil/Projects/quarto/quarto-cli/src/resources/filters/./quarto-post/docx.lua:95) An error occurred: Found a nested callout in the document. Please fix this issue and try again. Error running filter /Users/mcanouil/Projects/quarto/quarto-cli/src/resources/filters/main.lua: ...quarto/quarto-cli/src/resources/filters/./common/log.lua:30: attempt to call a nil value (global 'crash_with_stack_trace') stack traceback: ...arto/quarto-cli/src/resources/filters/./common/error.lua:14: in function 'fail' .../quarto-cli/src/resources/filters/./quarto-post/docx.lua:95: in function <.../quarto-cli/src/resources/filters/./quarto-post/docx.lua:7> (...tail calls...) ...quarto/quarto-cli/src/resources/filters/./ast/render.lua:46: in local 'filter_fn' ...o/quarto-cli/src/resources/filters/./ast/customnodes.lua:154: in function <...o/quarto-cli/src/resources/filters/./ast/customnodes.lua:144> (...tail calls...) [C]: in ? [C]: in method 'walk' ...o/quarto-cli/src/resources/filters/./ast/customnodes.lua:76: in function <...o/quarto-cli/src/resources/filters/./ast/customnodes.lua:65> (...tail calls...) .../quarto-cli/src/resources/filters/./ast/runemulation.lua:82: in local 'callback' .../quarto-cli/src/resources/filters/./ast/runemulation.lua:100: in upvalue 'run_emulated_filter_chain' .../quarto-cli/src/resources/filters/./ast/runemulation.lua:136: in function <.../quarto-cli/src/resources/filters/./ast/runemulation.lua:133> stack traceback: ...o/quarto-cli/src/resources/filters/./ast/customnodes.lua:76: in function <...o/quarto-cli/src/resources/filters/./ast/customnodes.lua:65> (...tail calls...) .../quarto-cli/src/resources/filters/./ast/runemulation.lua:82: in local 'callback' .../quarto-cli/src/resources/filters/./ast/runemulation.lua:100: in upvalue 'run_emulated_filter_chain' .../quarto-cli/src/resources/filters/./ast/runemulation.lua:136: in function <.../quarto-cli/src/resources/filters/./ast/runemulation.lua:133> ERROR: Error at renderFiles (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/command/render/render-files.ts:350:23) at eventLoopTick (ext:core/01_core.js:175:7) at async render (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/command/render/render-shared.ts:102:18) at async renderForPreview (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/command/preview/preview.ts:428:24) at async render (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/command/preview/preview.ts:172:22) at async preview (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/command/preview/preview.ts:189:18) at async Command.actionHandler (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/command/preview/cmd.ts:424:7) at async Command.execute (https://deno.land/x/cliffy@v1.0.0-rc.3/command/command.ts:1948:7) at async Command.parseCommand (https://deno.land/x/cliffy@v1.0.0-rc.3/command/command.ts:1780:14) at async quarto (file:///Users/mcanouil/Projects/quarto/quarto-cli/src/quarto.ts:156:5) ```pptx
does not support callouts.Same result for: 1.6, 1.5, and 1.4
Screenshots
| `html` | `revealjs` | |--------|------------| | ![Image](https://github.com/user-attachments/assets/7ccea985-a8cb-4e4c-87e1-86e2474572e7) | ![Image](https://github.com/user-attachments/assets/c64fea63-041e-4772-8d9d-690d08a0d6b8) | | ![Image](https://github.com/user-attachments/assets/23fef23b-fb4a-471b-9caf-e7da972077e8) | ![Image](https://github.com/user-attachments/assets/be1fff01-c0af-49dc-9a04-6cd9644edb30) | | ![Image](https://github.com/user-attachments/assets/6d57586e-ec7c-434b-9ce4-22b8ad2dd485) | ![Image](https://github.com/user-attachments/assets/093f924b-b68f-4e09-aa48-bac657d048f6) | | ![Image](https://github.com/user-attachments/assets/59bfa30f-d4a1-46f1-af9b-69ae5a2a8c54) | ![Image](https://github.com/user-attachments/assets/8f0eed2b-364a-4854-9e9b-5b43e2607cc0) | | ![Image](https://github.com/user-attachments/assets/920facfb-440c-4a7f-aa92-ced0718103a0) | ![Image](https://github.com/user-attachments/assets/e691967f-0c5a-499e-b269-768860bfb2d2) |Steps to reproduce
Quarto document
````qmd --- title: "Callouts" format: html: default revealjs: default --- ## Important :::: {.callout-important} ::: {.callout-tip} - HTML: Yes - Reveal.js: No ::: ::: {.callout-note} - HTML: Yes - Reveal.js: Yes + banner colour ::: ::: {.callout-warning} - HTML: Yes - Reveal.js: No ::: ::: {.callout-caution} - HTML: Yes - Reveal.js: No ::: :::: ## Caution :::: {.callout-caution} ::: {.callout-tip} - HTML: Yes - Reveal.js: Yes + banner colour ::: ::: {.callout-note} - HTML: Yes - Reveal.js: Yes + banner colour ::: ::: {.callout-warning} - HTML: Yes - Reveal.js: Yes + banner colour ::: ::: {.callout-important} - HTML: No - Reveal.js: Yes + banner colour ::: :::: ## Warning :::: {.callout-warning} ::: {.callout-tip} - HTML: Yes - Reveal.js: No ::: ::: {.callout-note} - HTML: Yes - Reveal.js: Yes + banner colour ::: ::: {.callout-important} - HTML: No - Reveal.js: Yes + banner colour ::: ::: {.callout-caution} - HTML: No - Reveal.js: No ::: :::: ## Tip :::: {.callout-tip} ::: {.callout-note} - HTML: Yes - Reveal.js: Yes + banner colour ::: ::: {.callout-important} - HTML: No - Reveal.js: Yes + banner colour ::: ::: {.callout-warning} - HTML: No - Reveal.js: Yes + banner colour ::: ::: {.callout-caution} - HTML: No - Reveal.js: No ::: :::: ## Note :::: {.callout-note} ::: {.callout-important} - HTML: No - Reveal.js: No ::: ::: {.callout-tip} - HTML: No - Reveal.js: No ::: ::: {.callout-warning} - HTML: No - Reveal.js: No ::: ::: {.callout-caution} - HTML: No - Reveal.js: No ::: :::: ````Expected behaviour
Parent callout should not matter.
Actual behaviour
Parent matters.
Quarto check output
Full
```bash Quarto 99.9.9 [✓] Checking versions of quarto binary dependencies... Pandoc version 3.4.0: OK Dart Sass version 1.70.0: OK Deno version 1.46.3: OK Typst version 0.11.0: OK [✓] Checking versions of quarto dependencies......OK [✓] Checking Quarto installation......OK Version: 99.9.9 commit: 9d866bd7b142f004a3a32d3b71e1a4da8c9b97af Path: /Users/mcanouil/Projects/quarto/quarto-cli/package/dist/bin [✓] Checking tools....................OK TinyTeX: v2024.07.03 Chromium: (not installed) [✓] Checking LaTeX....................OK Using: TinyTex Path: /Users/mcanouil/Library/TinyTeX/bin/universal-darwin Version: 2024 [✓] Checking basic markdown render....OK [✓] Checking Python 3 installation....OK Version: 3.13.0 Path: /Users/mcanouil/Projects/quarto/quarto-playground/.venv/bin/python3 Jupyter: 5.7.2 Kernels: julia-1.10, python3 [✓] Checking Jupyter engine render....OK (/) Checking R installation...........ℹ R version 4.4.1 (2024-06-14) ! Config '~/.Rprofile' was loaded! [✓] Checking R installation...........OK Version: 4.4.1 Path: /Library/Frameworks/R.framework/Resources LibPaths: - /Users/mcanouil/Projects/quarto/quarto-playground/renv/library/macos/R-4.4/aarch64-apple-darwin20 - /Users/mcanouil/Library/Caches/org.R-project.R/R/renv/sandbox/macos/R-4.4/aarch64-apple-darwin20/f7156815 knitr: 1.48 rmarkdown: 2.27 [✓] Checking Knitr engine render......OK ```