将图像添加到Gitlab中的README.org文件中

问题描述 投票:3回答:2

在Github中将图像添加到Markdown文件的方法已在here中进行了描述。但是,我想将图像添加到Gitlab中的*.org文件中(Github和Gitlab都支持README.org文件,因此两者的解决方案应该相同)。我已经尝试过:

[[file:./path/to/file.svg]]
[[sometext][file:./path/to/file.svg]]]
[[file:./path/to/file.svg]][sometext]]

Markdown的格式也不起作用:

![alt text](./path/to/file.svg)

建议使用以下已删除的答案

![][1]

[1]: ./path/tofile

也不起作用。

正确的方法是什么?

github gitlab org-mode readme
2个回答
4
投票

Inset html同时适用于Gitlab和Github。

#+html: <p align="center"><img src="path/to/file" /></p>

0
投票
#+caption: <img description> (optional)
#+attr_html: :width 50 px
#+attr_html: :height 50 px
[[<path to image>]]

有关更多信息,请检查orgmode manual

© www.soinside.com 2019 - 2024. All rights reserved.