5

这里介绍了一种在 Github 中向 markdown 文件添加图像的方法。但是,我想将图像添加到*.orgGitlab 中的文件(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

这也不起作用。

正确的方法是什么?

4

2 回答 2

5

html插入适用于 Gitlab 和 Github 。

#+html: <p align="center"><img src="path/to/file" /></p>
于 2017-08-06T08:32:23.213 回答
0
#+caption: <img description> (optional)
#+attr_html: :width 50 px
#+attr_html: :height 50 px
[[<path to image>]]

有关更多信息,请查看orgmode 手册

于 2020-05-22T17:24:35.633 回答