JetBrains / JetBrains/markdown

GFM Tables don't seem to tokenize column alignment

Open
#145 0 comments 4 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
958
Forks
104
Avg merge
17h 30m
Merged PRs (30d)
12

Description

GitHub-flavored Markdown adds support for tables, which support setting column alignment. However, I don't see anything that the parser gives us to handle different alignments. For example, the following table with alignments

```
| foo | bar | baz |
| :--- | ---: | :---: |
```

Gives us the same ASTNode tree as the following table with no alignments

```
| foo | bar | baz |
| --- | --- | --- |
```

See https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/organizing-information-with-tables#formatting-content-within-your-table for alignment information.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.