Skip to content

Commit

Permalink
Support MyST table column alignment (#531)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
chrisjsewell committed Sep 25, 2022
1 parent 82dd61c commit 9af2e44
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/furo/assets/styles/content/_tables.sass
Expand Up @@ -32,3 +32,11 @@ table.docutils
border-left: none
&:last-child
border-right: none

// MyST tables set these classes for control of column alignment
&:.text-left
text-align: left
&:.text-right
text-align: right
&:.text-center
text-align: center

0 comments on commit 9af2e44

Please sign in to comment.