首先为图像添加标题属性
Adding title attribute to an image in rst
似乎重组后的文本标记在图像选项方面非常有限:
The following options are recognized:
alt : text
height : length
width : length or percentage of the current line width
scale : integer percentage (the "%" symbol is optional)
align : "top", "middle", "bottom", "left", "center", or "right"
target : text (URI or reference name)
是否可以通过 reStructuredText 标记设置一些自定义属性,例如标题?
例如
.. image:: foobar.jpg
:title: mouse over text, hi!
将输出:
<img src="foobar.jpg" title="mouse over text, hi!"></img>
根据 docutils,可以识别以下选项:alt、height、width、scale、align、target、class 和 name。没有标题。
选项包括 rewriting in the client with JavaScript or work with the docutils team to make a feature request 并实施它。
您可以使用figure
.. figure:: picture.png
This is the caption of the figure.
似乎重组后的文本标记在图像选项方面非常有限:
The following options are recognized:
alt : text
height : length
width : length or percentage of the current line width
scale : integer percentage (the "%" symbol is optional)
align : "top", "middle", "bottom", "left", "center", or "right"
target : text (URI or reference name)
是否可以通过 reStructuredText 标记设置一些自定义属性,例如标题?
例如
.. image:: foobar.jpg
:title: mouse over text, hi!
将输出:
<img src="foobar.jpg" title="mouse over text, hi!"></img>
根据 docutils,可以识别以下选项:alt、height、width、scale、align、target、class 和 name。没有标题。
选项包括 rewriting in the client with JavaScript or work with the docutils team to make a feature request 并实施它。
您可以使用figure
.. figure:: picture.png
This is the caption of the figure.