Duplicated anchors for h2 sections
Following updating from 2.0.9 to 2.1.0, we see duplicated anchor tags following h2 sections:
We create anchors manually before the HTML is passed to pkgdown as we need to provide translated anchors:
Would it be possible to add some kind of flag to tweak_anchors to tell pkgdown to ignore <section> objects? Or is there another way I can avoid the automated adding of anchors to sections?
If you want to provide translated anchors, maybe that's something pkgdown should just do for you? It looks like you're only translating the word "anchor"?
Hi @hadley thanks for your quick reply! No, we have a larger set of "core" translations that we apply to our lesson materials based on a configured two-letter language code: https://github.com/carpentries/sandpaper/blob/main/R/utils-translate.R