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

fix: many rendering issues #317

Merged
merged 36 commits into from
Jul 25, 2024
Merged

fix: many rendering issues #317

merged 36 commits into from
Jul 25, 2024

Conversation

caarlos0
Copy link
Member

@caarlos0 caarlos0 commented Jul 12, 2024

Fixing many bug related to rendering, most of them come from the fact we don't render inner elements properly.
This fixes it.

closes #312
closes #290
closes #106
closes #274
closes #311
closes #239
closes #262
closes #254
closes #315
closes #316
refs #149
closes #117
closes #60
closes #313
closes #237
refs #107 (improves it a little bit, doesn't fix it though)
refs #79 (improves it a little bit, doesn't fix it though)
closes #68
refs #172

Signed-off-by: Carlos Alexandro Becker <[email protected]>
@caarlos0 caarlos0 changed the title wip fix: many rendering issues Jul 16, 2024
Signed-off-by: Carlos Alexandro Becker <[email protected]>
Signed-off-by: Carlos Alexandro Becker <[email protected]>
Signed-off-by: Carlos Alexandro Becker <[email protected]>
Signed-off-by: Carlos Alexandro Becker <[email protected]>
Copy link
Member

@aymanbagabas aymanbagabas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing!

go.mod Outdated Show resolved Hide resolved
Signed-off-by: Carlos Alexandro Becker <[email protected]>
@bashbunni
Copy link
Member

I think this one is still broken
#149
I tried reading the lipgloss README with glow and very long links were still broken
image

It also looks like there may be an issue with tables rendering properly
image

source markdown:


| Dec |  Hex |   Oct | Char | Description               |
| --: | ---: | ----: | :--- | ------------------------- |
| 001 | 0x00 | 0o000 | NUL  | null                      |
| 002 | 0x01 | 0o001 | SOH  | start of heading          |
| 003 | 0x02 | 0o002 | STX  | start of text             |
| 004 | 0x03 | 0o003 | ETX  | end of text               |
| 005 | 0x04 | 0o004 | EOT  | end of transmission       |
| 006 | 0x05 | 0o005 | ENQ  | enquiry                   |

We still need to fix these hard new lines as well... though could be done in another PR
image

@caarlos0
Copy link
Member Author

this table breaks on glow, but not on glamour... weird, investigating...

@caarlos0
Copy link
Member Author

i think this is all fixed.

need to use this branch of glow: charmbracelet/glow#631

@caarlos0 caarlos0 merged commit adb0b8d into master Jul 25, 2024
18 checks passed
@caarlos0 caarlos0 deleted the 312 branch July 25, 2024 14:28
bashbunni added a commit that referenced this pull request Jul 31, 2024
* wip

Signed-off-by: Carlos Alexandro Becker <[email protected]>

* 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 <[email protected]>

* test: #290

Signed-off-by: Carlos Alexandro Becker <[email protected]>

* test: #312

Signed-off-by: Carlos Alexandro Becker <[email protected]>

* test: #257

Signed-off-by: Carlos Alexandro Becker <[email protected]>

* test: #149

* fix: #239

* feat: use lipgloss table

closes #262

Co-authored-by: bashbunni <[email protected]>

* 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 <[email protected]>

* chore: gitattributes

* fix: test opt

Signed-off-by: Carlos Alexandro Becker <[email protected]>

* fix: stable lipgloss

Signed-off-by: Carlos Alexandro Becker <[email protected]>

* fix: double styles

* fix: tables

* fix: tables

---------

Signed-off-by: Carlos Alexandro Becker <[email protected]>
Co-authored-by: bashbunni <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment