Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect Existing Column Alignments #5

Open
Nabav opened this issue Mar 10, 2020 · 3 comments
Open

Respect Existing Column Alignments #5

Nabav opened this issue Mar 10, 2020 · 3 comments

Comments

@Nabav
Copy link

Nabav commented Mar 10, 2020

The existing column alignments are not respected and the default left-aligned mode is used each time.

For example, this

| Left Aligned | Centered | Right Aligned | Left Aligned | Centered | Right Aligned |
| :---         | :---:    | ---:          | :----------- | :------: | ------------: |
| Cell 1       | Cell 2   | Cell 3        | Cell 4       | Cell 5   | Cell 6        |
| Cell 7       | Cell 8   | Cell 9        | Cell 10      | Cell 11  | Cell 12       |

is formatted into:

| Left Aligned | Centered | Right Aligned | Left Aligned | Centered | Right Aligned |
|--------------|----------|---------------|--------------|----------|---------------|
| :---         | :---:    | ---:          | :----------- | :------: | ------------: |
| Cell 1       | Cell 2   | Cell 3        | Cell 4       | Cell 5   | Cell 6        |
| Cell 7       | Cell 8   | Cell 9        | Cell 10      | Cell 11  | Cell 12       |

Example from Gitlab

@TomasHubelbauer
Copy link
Owner

Is this regular MarkDown? I had no idea there were alignment markers like these.

@Nabav
Copy link
Author

Nabav commented Mar 10, 2020

Gitlab and Github flavored markdowns support the column aligments.

The table formatter can keep the style and just stretch/shrink them to fit in the already calculated column width.

@TomasHubelbauer
Copy link
Owner

Thanks for the link, this is very helpful. I'll take a look at this at some point, but I am not maintaining this extension as of now, so not soon. I'll update this issue when I do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants