降价中的R锚点 [英] R anchors in markdown

查看:106
本文介绍了降价中的R锚点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在创建Rmd文件时,我包括了一个内部超链接:

In creating a Rmd file I included an internal hyperlink:

   [hlink](#id1)  

然后再锚定

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

然后我在RStudio中使用Knit HTML时,一切正常,并且 内部超链接可以正常工作,但我也得到了不必要的

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>

如何避免出现此错误?

推荐答案

我只是在寻找一种解决方案来生成目录并遇到您的问题.

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.

我的会话信息: R版本2.15.3(2013-03-01) knitr_1.1

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.

这篇关于降价中的R锚点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆