如何在R Markdown中超链接图像

编程入门 行业动态 更新时间:2024-10-10 12:20:36
本文介绍了如何在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](www.host/image.png)

Use this way: ![Alt text](Web link or path) Examples: ![Image name](img/image.png) or ![Image name](www.host/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)](www.host/link.html)

更多推荐

如何在R Markdown中超链接图像

本文发布于:2023-11-28 08:44:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1641716.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:中超   图像   链接   如何在   Markdown

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!