The seems not to work in Quarto (it works well in Rmarkdown). I've found this to be true for many of the inline commands for Rmarkdown -- it seems that the Quarto programmers are simply not porting these over to Quarto. You can get around this with the knitr::include_graphics() command.