Cross references not working in rmarkdown diagram view

I would like to link the section headers in the beamer_presentation through Rmarkdown (i.e. create cross references or Pandoc internal links ). For example, I would like to have a link, for example, "see" Introduction, by clicking this link, the presentation should go to the slide titled “Introduction.”

I tried this code:

---
output: beamer_presentation
---

## TOC

- [Important](#Important)
- [More](#More)
- [Stuff](#stuff)



## Important

jklödfs

## More


sdfjkls

## stuff {#stuff}

However, the expected behavior does not appear. Instead, if you click the link, the first pages (but not the corresponding slide) are displayed.


SessionInfo:

pandoc 1.19.1

R version 3.4.0 (2017-04-21) Platform: x86_64-apple-darwin15.6.0 (64-bit) Running under: macOS Sierra 10.12.5

: BLAS:/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK:/Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib

: [1] ru_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

: [1] stats graphics grDevices utils

( ):  [1] compiler_3.4.0 backports_1.1.0 magrittr_1.5 rsconnect_0.8 rprojroot_1.2 htmltools_0.3.6 tools_3.4.0 yaml_2.1.14 Rcpp_0.12.11
[10] stringi_1.1.5 rmarkdown_1.5 knitr_1.16 stringr_1.2.0 digest_0.6.12 _0.10

+4
1

Edit:

GitHub:

, ( URL-), , , , pandoc, .

, yhou liek link, 1 - , ...

, ( , , Rmd):

---
title: "Untitled"
author: "John Doe"
date: "13 June 2017"
output:
  slidy_presentation: default
  ioslides_presentation: default
  beamer_presentation: default
---

## TOC

[Important](#(3))

[More](#(4))

[Stuff](#(5))

## Important {#important}

jklödfs

## More {#more}

sdfjkls

## stuff {#stuff}

:

, , ( , , Win 8.1, R 3.4.0, pandoc 1.19.2.1, knitr 1.15.16):

Rmd :

---
title: "Untitled"
author: "John Doe"
date: "13 June 2017"
output:
  slidy_presentation: default
  ioslides_presentation: default
  beamer_presentation: default
---

## TOC

[Important](#important)

[More](#more)

[Stuff](#stuff)

## Important {#important}

jklödfs

## More {#more}

sdfjkls

## stuff {#stuff}

Knit to html ( ioslides, slidy) TOC :

<div id="toc" class="slide section level2">
<h2>TOC</h2>
<p><a href="#important">Important</a></p>
<p><a href="#more">More</a></p>
<p><a href="#stuff">Stuff</a></p>
</div>

:

<div id="toc" class="slide section level2">
<h2>TOC</h2>
<p><a href="#(3)">Important</a></p>
<p><a href="#(4)">More</a></p>
<p><a href="#(5)">Stuff</a></p>
</div>

, , . #important, #(3). , , , html <div id="important" class="slide section level2"> ..

0

Source: https://habr.com/ru/post/1679141/


All Articles