如何在R Markdown中超链接图像 [英] how to hyperlink an image in R Markdown
本文介绍了如何在R Markdown中超链接图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
基于我对markdown语法的理解,这是将超链接添加到嵌入式图像的方式,但是使用R Markdown似乎不起作用.我在做什么错了?
Based upon my understanding of markdown syntax, this is how you add a hyperlink to an embedded image, yet this does not seem to work using R Markdown. What am I doing wrong?
[![替代文字] [保存图像的本地路径]] [网络链接]
[![alt text][local path to saved image]][web link]
推荐答案
使用这种方式:![Alt text](Web link or path)
示例:![Image name](img/image.png)
或
![Image name](http://www.host.com/image.png)
Use this way: ![Alt text](Web link or path)
Examples: ![Image name](img/image.png)
or
![Image name](http://www.host.com/image.png)
结合超链接[text](URL)
的常规语法,我们有:
Combining with the normal syntax for a hyperlink [text](URL)
, we have:
[![Alt text](Web link or path)](web link to website)
示例:
[![Image name](image.png)](http://www.host.com/link.html)
这篇关于如何在R Markdown中超链接图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文