Add inline image in Rmarkdown

旧时模样 提交于 2020-12-30 08:12:03

问题


I can't find a way to insert an inline image on a markdown document I'm producing with RStudio.

Seems like the RmarkDown Style Cheat sheet (https://www.rstudio.com/wp-content/uploads/2016/03/rmarkdown-cheatsheet-2.0.pdf) does not mention such feature.

Is this currently possible?

Here's an example using html for a svg image: link: http://www.herongyang.com/HTML/HTML5-Add-Inline-SVG-Image-HTML5-Documents.html


回答1:


Markdown syntax allows inline images:

foo ![](image.png) bar



回答2:


Could also use the display property

![](images.png?display=inline-block)


来源:https://stackoverflow.com/questions/43139460/add-inline-image-in-rmarkdown

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