Skip to contents

Unlike 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.

Usage

fix_quarto_annotations(html_path)

Arguments

html_path

Path to an HTML file to inspect.

Value

The number of code annotations found, invisibly.