CrossNox / m2r2

Markdown to reStructuredText converter
https://crossnox.github.io/m2r2
MIT License
107 stars 26 forks source link

issue when parsing tables with status badges #7

Open hoermannpaul opened 4 years ago

hoermannpaul commented 4 years ago
| col 1 | col 2  |
| ----------- | ----------- |
| row 1: | [![some status image](https://some/Badge)](link) |
| row 2: | [![some status image](https://some/Badge)](link) |

gets translated to

   * - col 1
     - col 2
   * - row 1:
     - 
     .. image:: https://some/Badge
        :target: link
        :alt: some status image
   * - row 2:
     - 
     .. image:: https://some/Badge
        :target: link
        :alt: some status image

which should be

   * - col 1
     - col 2
   * - row 1:
     - .. image:: https://some/Badge
        :target: link
        :alt: some status image
   * - row 2:
     - .. image:: https://some/Badge
        :target: link
        :alt: some status image

This results in an error and the table is not gettings displayed, when converting manually to second variant it works.

I am not sure if second variant is like it really should be, but it looks ok and there are no errors when building docs anymore

Actually I will just not display the badges in tables anymore, but just so this issue is known :)