问题
Well, I've been working with Markdown for a year and today, suddenly, next to the headings an a tag has been automatically added.
Someone would know why these anchors have been generated automatically and how I could remove them?
Pd: one way to solve it is with h1,h2, etc., but then with the pdf output the index is eliminated, so it would not really solve the problem.


回答1:
This is a new feature in rmarkdown 2.5.
You can change this in your YAML header at the top of your rmd file:
html_document:
anchor_sections: false
来源:https://stackoverflow.com/questions/64616004/rmarkdown-automatic-anchor-section