Skip to content

[Markdown]: markdown table alignment not working #7502

@weilinzung

Description

@weilinzung

Affected Packages

@tiptap/extension-table, @tiptap/markdown

Version(s)

3.19.0

Bug Description

With v3, the markdown and table extensions do not respect the markdown table alignment anymore. In v2, it is working properly, which will add inline style to the <td style="text-align:center">xxx</td>.

Image
| Tables   |      Are      |  Cool |
|----------|:-------------:|------:|
| col 1 is |  left-aligned | $1600 |
| col 2 is |    centered   |   $12 |
| col 3 is | right-aligned |    $1 |

Browser Used

Chrome

Code Example URL

No response

Expected Behavior

left (default): | ----- | or | :---- |
right: | ----: |
center: | :-----: |

Image

Additional Context (Optional)

No response

Dependency Updates

  • Yes, I've updated all my dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Open SourceThe issue or pull reuqest is related to the open source packages of Tiptap.

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions