I am using R Studio to create a markdown document. I tried:
Jump to [Header 1](#anchor)
I would like
Pandoc supports explicit and implicit section references for headers; see the pandoc manual.
## Test {#test}
and later refer to it with a link syntax: see [the relevant section](#test)
.## Test
, can still be refered to: See the section called [Test]
.Both syntax should allow you to click on the link to go to the anchor, and should work in most output format. (only tested with html and pdf).
---
output: pdf_document
---
## A section
blah blah
## A second section with a custom identifier {#custom}
blah blah
## Links
You can use implicit references to refer to sections
you have not explicitly named, like this:
see [A section].
You can use links to refere to sections with explicit
references, like this: see [the second section](#custom).