在restructuredtext中引用表

问题描述 投票:1回答:1

反正有没有在RestructuredText中引用表?就像是 见表`referencetable`_ (我看到了一些引用数据的变通方法。虽然找不到引用表的方法..)

谢谢!

restructuredtext
1个回答
2
投票

你可以简单地定义一个hyperlink target

Here is table-1_.

.. _table-1:

+------------+------------+-----------+
| Header 1   | Header 2   | Header 3  |
+============+============+===========+
| body row 1 | column 2   | column 3  |
+------------+------------+-----------+
| body row 2 | Cells may span columns.|
+------------+------------+-----------+
| body row 3 | Cells may  | - Cells   |   
+------------+ span rows. | - contain |
| body row 4 |            | - blocks. |
+------------+------------+-----------+
© www.soinside.com 2019 - 2024. All rights reserved.