Commits

Georg Brandl committed fbf7f5e

Test references to figures and tables by caption.

Comments (0)

Files changed (1)

tests/root/markup.txt

 * :token:`try statement <try_stmt>`
 * :ref:`admonition-section`
 * :ref:`here <some-label>`
+* :ref:`my-figure`
+* :ref:`my-table`
 * :doc:`subdir/includes`
 * ``:download:`` is tested in includes.txt
 * :option:`Python -c option <python -c>`
 
 .. tabularcolumns:: |L|p{5cm}|R|
 
-+----+----------------+----+
-| 1  | * Block elems  |  x |
-|    | * In table     |    |
-+----+----------------+----+
-| 2  | Empty cells:   |    |
-+----+----------------+----+
+.. table:: my table
+
+   +----+----------------+----+
+   | 1  | * Block elems  |  x |
+   |    | * In table     |    |
+   +----+----------------+----+
+   | 2  | Empty cells:   |    |
+   +----+----------------+----+
+
+
+Figures
+-------
+
+.. _my-figure:
+
+.. figure:: img.png
+
+   My caption of the figure
 
 
 Version markup