Alejandro Navas
Alejandro Navas

Reputation: 13

RMarkdown automatic anchor-section

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

Upvotes: 1

Views: 400

Answers (1)

semaphorism
semaphorism

Reputation: 866

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

Upvotes: 4

Related Questions