TatsuyaNakamori / vscode-reStructuredText

Language Support for reStructuredText
MIT License
3 stars 2 forks source link

Image directive not recognized inside the cell #6

Open sachin-suresh-rapyuta opened 11 months ago

sachin-suresh-rapyuta commented 11 months ago

I am using the .. image:: directive and it does not render the image in the output.

+----------------+------------------------------------------------+------------------------------------------------+---------------------------------------------------+
| Specification  | Gen2 (Discontinued)                            | Gen3/Gen3.1                                    | Gen3 XL                                           |
+================+================================================+================================================+===================================================+
|| Agent picture || .. image:: ../images/pa_amr_overview/gen2.png || .. image:: ../images/pa_amr_overview/gen3.png || .. image:: ../images/pa_amr_overview/gen3_xl.png |
||               || :height: 250px                                || :height: 250px                                || :height: 250px                                   |
+----------------+------------------------------------------------+------------------------------------------------+---------------------------------------------------+

Note, the image should also work if the table is within the .. table directive (as listed in this issue #2 )

Other observation: The official RST spec for images requires us to give 3 spaces if we use params like height, width for image directive. But, on using the directive inside the table, it doesn't auto format. See the same table used above.

Incorrect:

.. image:: ../images/pa_amr_overview/gen2.png
:height: 250px

Correct:

.. image:: ../images/pa_amr_overview/gen2.png
   :height: 250px
TatsuyaNakamori commented 10 months ago

Thank you for your report. Indeed, the automatic formatting does not seem to work.

Please wait a while while we check the cause.

Thank you very much.

sachin-suresh-rapyuta commented 9 months ago

@TatsuyaNakamori - would be happy to see any updates on this.