在RST表的单元格中使用图像时是否插入了<blockquote>标记?

时间:2018-12-14 00:05:55

标签: image restructuredtext

当我使用以下代码时:

+----------------------+---------------+---------------------------------------------------------------------+
|          A           |       B       |                C                                                    |
+======================+===============+=====================================================================+
| Merchant Rating      | Ad Extension  | Star ratings plus number of reviews for the advertiser/merchant.    |
|                      |               |                                                                     |
|                      |               |.. image:: /images/merchant-rating.png                               |
+----------------------+---------------+---------------------------------------------------------------------+

C列中图像之前的文本被包装在HTML输出的<blockquote>标记中。有什么办法可以避免这种情况?

Text impacted by arbitrary <blockquote> tag in column C

2 个答案:

答案 0 :(得分:0)

要避免在第三列的第一段中使用blockquote标签,可以尝试使用此标签:

+----------------------+---------------+---------------------------------------------------------------------+
|          A           |       B       |                C                                                    |
+======================+===============+=====================================================================+
| Merchant Rating      | Ad Extension  | Star ratings plus number of reviews for the advertiser/merchant.    |
|                      |               |                                                                     |
|                      |               | |img|                                                               |
+----------------------+---------------+---------------------------------------------------------------------+

.. |img| image:: /images/merchant-rating.png

相反,您将获得两个段落。

答案 1 :(得分:0)

使用substitution并删除分隔线,以便Sphinx将内容解释为单个文本块。

+-----------------+--------------+------------------------------------------------------------------+
|        A        |      B       |                C                                                 |
+=================+==============+==================================================================+
| Merchant Rating | Ad Extension | Star ratings plus number of reviews for the advertiser/merchant. |
|                 |              | |img|                                                            |
+-----------------+--------------+------------------------------------------------------------------+

.. |img| image:: /images/merchant-rating.png