1 restructuredtext inline image github
我试图将内联图像插入 .rst 文件,但没有成功。我尝试复制以前的技术作家使用的语法,如下所示:
|图标复制|
上述语法引用的图像文件的名称是studio_icon_copy。但是,创建一个名为studio_icon_additional的图像文件,并使用|icon-additional| 语法,不起作用。我验证这是用于内联图像的所有工作实例的语法。
我还通过对我正在使用的文件夹中的studio_icon_copy进行轻微更改并验证我是否在前端看到了更改来验证它确实是正确的图像。我还确保我创建的新图像位于同一文件夹中。
我什至尝试将正确的语法复制并粘贴到所需的位置,然后简单地将copy替换为extra,但这也不起作用。
无论如何,我使用 Notepad++ 并在 GitHub 上工作。尝试上述操作后,我不知道如何正确插入它,尽管我很确定我遗漏了一些东西。
谢谢。
小智 6
来自https://docutils.sourceforge.io/docs/ref/rst/restructedtext.html#substitution-definitions的实际引用说:
The |biohazard| symbol must be used on containers used to
dispose of medical waste.
.. |biohazard| image:: biohazard.png
Run Code Online (Sandbox Code Playgroud)
这实际上应该是这样的:
.. |biohazard| image:: biohazard.png
The |biohazard| symbol must be used on containers used to
dispose of medical waste.
Run Code Online (Sandbox Code Playgroud)
始终声明 |pic| 在引用它之前。我认为对此进行了一些更改,并且文档实际上并未更新。您始终可以添加选项以使其非常小,然后您就可以确定它在文本旁边看起来不错:
.. |biohazard| image:: biohazard.png
:height: 25px
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
904 次 |
最近记录: |