在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
也不起作用。
正确的方法是什么?
Inset html
同时适用于Gitlab和Github。
#+html: <p align="center"><img src="path/to/file" /></p>
#+caption: <img description> (optional)
#+attr_html: :width 50 px
#+attr_html: :height 50 px
[[<path to image>]]
有关更多信息,请检查orgmode manual。