RMarkdown automatic anchor-section

杀马特。学长 韩版系。学妹 提交于 2021-01-19 08:59:26

问题


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.

Output

Markdown file


回答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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!