-
What's happening?Here is a table in MyST: | Column | Left-aligned | Centered | Right-aligned |
|--------|:-------------|:--------:|--------------:|
| 1 | 2 | 3 | 4 |
| A | B | C | D | I expect the content of the first and second column to be left-aligned, the third column to be centered and the last one to be right aligned. Unfortunately all cells ends up left-aligned. Here is the HTML produced for a row: <tr class="row-odd">
<td>
<p>A</p>
</td>
<td class="text-align:left">
<p>B</p>
</td>
<td class="text-align:center">
<p>C</p>
</td>
<td class="text-align:right">
<p>D</p>
</td>
</tr> See how the alignment gets hard-coded in the form of a class attribute? This seems to be fixed if I manually edit each Reproducer
ExpectationHere I expect the contant of each column to respect the alignment constraint defined in Markdown between the header of the table and its rows. Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
This sounds like a bug to file against myst-parser. /cc @choldgraf |
Beta Was this translation helpful? Give feedback.
-
Worked around in 08ba46d. I'll cut a release with this, but only with a grumpy face. >.< |
Beta Was this translation helpful? Give feedback.
-
I'm sorry for the noise. I should have checked Feel free to ignore my bug report and close it if it doesn't make sense. I felt like reporting it for completeness but this is just nitpicking. It is a small inconvenience I can perfectly live without! 😅 BTW, thanks a lot @pradyunsg for Furo. I stumble upon it this week and it was so clean and beautiful that it was the best excuse I found to finally switch to Markdown-based documentation in Sphinx. 😍 |
Beta Was this translation helpful? Give feedback.
-
FYI, I confirm the latest released version of Furo fixed the issue. See these perfectly aligned columns: Source: https://kdeldycke.github.io/meta-package-manager/#supported-package-managers |
Beta Was this translation helpful? Give feedback.
Worked around in 08ba46d.
I'll cut a release with this, but only with a grumpy face. >.<