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

Alignment is not supported #117

Closed
danielhoherd opened this issue Aug 11, 2021 · 1 comment · Fixed by #317
Closed

Alignment is not supported #117

danielhoherd opened this issue Aug 11, 2021 · 1 comment · Fixed by #317
Labels
enhancement New feature or request renderer Everything related to the markdown renderer

Comments

@danielhoherd
Copy link

When rendering table columns that have alignment specified via the header separator alignment syntax, alignment is not rendered.

$ cat table-example.md
| left-aligned | center-aligned | right-aligned |
| :----------- | :------------: | ------------: |
| r1c1 | r1c2 | r1c3 |
| r2c1 | r2c2 | r2c3 |
| r3c1 | r3c2 | r3c3 |
| r4c1 | r4c2 | r4c3 |
| r5c1 | r5c2 | r5c3 |
$ glow table-example.md


    LEFT-ALIGNED │ CENTER-ALIGNED │ RIGHT-ALIGNED
  ───────────────┼────────────────┼────────────────
    r1c1         │ r1c2           │ r1c3
    r2c1         │ r2c2           │ r2c3
    r3c1         │ r3c2           │ r3c3
    r4c1         │ r4c2           │ r4c3
    r5c1         │ r5c2           │ r5c3

$ prettier table-example.md
| left-aligned | center-aligned | right-aligned |
| :----------- | :------------: | ------------: |
| r1c1         |      r1c2      |          r1c3 |
| r2c1         |      r2c2      |          r2c3 |
| r3c1         |      r3c2      |          r3c3 |
| r4c1         |      r4c2      |          r4c3 |
| r5c1         |      r5c2      |          r5c3 |
@muesli muesli transferred this issue from charmbracelet/glow Aug 12, 2021
@muesli muesli added enhancement New feature or request renderer Everything related to the markdown renderer labels Oct 12, 2022
caarlos0 added a commit that referenced this issue Jul 17, 2024

Verified

This commit was signed with the committer’s verified signature.
caarlos0 Carlos Alexandro Becker
@caarlos0
Copy link
Member

this is fixed on master

caarlos0 added a commit that referenced this issue Jul 25, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
* wip

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* wip

* wip

* wip

* fix: autolink

closes #290

* fix: escape characters

closes #106
closes #274
closes #311

* fix: table

* ci: golangci lint update

* feat: use x/golden

* test: #106

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* test: #290

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* test: #312

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* test: #257

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* test: #149

* fix: #239

* feat: use lipgloss table

closes #262

Co-authored-by: bashbunni <bunni@bashbunni.dev>

* fix: codespan is not a block

* test: #315

* test: #316

* fix: #316

* test: table

* fix: codespans, tables

* test: table

* test: #117

* test: #60

* fix: rm stylewriter

* fix: #313

* fix: margin

* fix: blocks and word wrap

* fix: build

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* chore: gitattributes

* fix: test opt

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* fix: stable lipgloss

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* fix: double styles

* fix: tables

* fix: tables

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: bashbunni <bunni@bashbunni.dev>
bashbunni added a commit that referenced this issue Jul 31, 2024

Partially verified

This commit is signed with the committer’s verified signature.
bashbunni’s contribution has been verified via GPG key.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
* wip

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* wip

* wip

* wip

* fix: autolink

closes #290

* fix: escape characters

closes #106
closes #274
closes #311

* fix: table

* ci: golangci lint update

* feat: use x/golden

* test: #106

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* test: #290

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* test: #312

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* test: #257

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* test: #149

* fix: #239

* feat: use lipgloss table

closes #262

Co-authored-by: bashbunni <bunni@bashbunni.dev>

* fix: codespan is not a block

* test: #315

* test: #316

* fix: #316

* test: table

* fix: codespans, tables

* test: table

* test: #117

* test: #60

* fix: rm stylewriter

* fix: #313

* fix: margin

* fix: blocks and word wrap

* fix: build

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* chore: gitattributes

* fix: test opt

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* fix: stable lipgloss

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* fix: double styles

* fix: tables

* fix: tables

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: bashbunni <bunni@bashbunni.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request renderer Everything related to the markdown renderer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants