Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table Formatter Can't handle rst alias #32

Open
KenwoodFox opened this issue Jul 19, 2023 · 0 comments
Open

Table Formatter Can't handle rst alias #32

KenwoodFox opened this issue Jul 19, 2023 · 0 comments

Comments

@KenwoodFox
Copy link

KenwoodFox commented Jul 19, 2023

When inserting an image via alias into a table, the table formatter tries to treat it as its own column.

Example
#######

+---------+-------------------+
|  Image  |       Text        |
+=========+===================+
| |image| | This is an image. |
+---------+-------------------+


.. |image| image:: image.png
   :width: 125
   :alt: An image

Formats to

Example
#######

+-------+-------+-----+-------------------+
| Image | Text  |     |                   |
+=======+=======+=====+===================+
|       | image |     | This is an image. |
+-------+-------+-----+-------------------+


.. |image| image:: image.png
   :width: 125
   :alt: An image

Which breaks image links and causes weird formatting.

Let me know if there's anything I can do to help! I could try and submit a pr for this if i can figure out where a check to see if a tag is an alias could fit in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant