Skip to content

Commit 9af2e44

Browse files
authored
Support MyST table column alignment (#531)
With Markdown tables, one can control column alignment: ```markdown | left | center | right | | :--- | :----: | ----: | | a | b | c | ``` To enable this non-standard (in docutils) feature, MyST-Parser adds CSS classes to the `td`/`th`, which then require implementation by the HTML themes.
1 parent 82dd61c commit 9af2e44

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/furo/assets/styles/content/_tables.sass

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,11 @@ table.docutils
3232
border-left: none
3333
&:last-child
3434
border-right: none
35+
36+
// MyST tables set these classes for control of column alignment
37+
&:.text-left
38+
text-align: left
39+
&:.text-right
40+
text-align: right
41+
&:.text-center
42+
text-align: center

0 commit comments

Comments
 (0)