Last month, @bastistician opened an issue on the litedown repo pointing out that knitr has a hook_pngquant() function for compressing PNG plots from code chunks, but litedown lacks such a feature. He included a reasonable workaround—calling system2("pngquant", …) with litedown::get_context("plot_files") in a chunk at the end of the vignette. It shrank his vignette from 80 KB …