GehDoc / vscode-textile-preview

Provides rich language support for Textile within Visual Studio Code : synchronised preview side by side with the textile markup source, source code folding, code block syntax highlighting, link to headlines with completion...
Other
6 stars 2 forks source link

Table header row is always centered horizontally #76

Closed Nabav closed 1 year ago

Nabav commented 1 year ago

Textile Language Features: v1.3.23 VS Code: v1.81.1 Operating system: Debian 11

Describe the bug The cells of the first row of a table are centered disregarding formatting characters.

To Reproduce Use this and preview:

|_. Col1          |_=. Col2        |_.  Col3          |
|=.  col1 row1    |   col2 row1    |=.  col3 row1     |
|=.  col1 row end |   col2 row end |=.  col3 row end  |

Expected behavior As rendered by textile-lang.com, just the second column is centered as specified by _=., the other two columns are not centered horizontally in the first row.

image

Additional context This is what is currently rendered:

image

GehDoc commented 1 year ago

Confirmed : Electron's stylesheet centers text by default on table header cells with text-align: -internal-center;