R anchors in markdown

大憨熊 提交于 2019-12-04 02:59:30

问题


In creating a Rmd file I included an internal hyperlink:

   [hlink](#id1)  

and then further on an anchor

<a id="id1"></a> . 

When I then use Knit HTML (in RStudio) everything works fine and the internal hyperlink works fine but I also get an unwanted �

<p><a id="id1"></a>�</p>

How can I avoid getting this error?


回答1:


I was just looking for a solution to produce a table of content and came across your question.

The above example works perfectly fine. No unwanted side effects.

My session info: R version 2.15.3 (2013-03-01) knitr_1.1

Just wanted to mention that, incase somebody else comes across this question.



来源:https://stackoverflow.com/questions/12204257/r-anchors-in-markdown

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