Detect Quarto code annotations in a pkgdown-rendered HTML file
Source:R/annotations.R
fix_quarto_annotations.RdUnlike callouts and tabsets, Quarto's code-annotation markup (the
code-annotation-anchor links and their dl.code-annotation-container-grid
targets) survives pkgdown's minimal: TRUE render intact - it's only the
interactivity (click-to-highlight, hover) that's lost, because that theme
strips the Bootstrap/Quarto JS the annotations depend on. So there's no
markup to repair here, unlike fix_quarto_callouts() and
fix_quarto_tabsets(); this function just counts the annotations present,
which quartofix() uses to decide whether to link in the JS/CSS that
restores their behavior.