这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented May 1, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/charmbracelet/glamour v0.9.1 -> v0.10.0 age adoption passing confidence

Release Notes

charmbracelet/glamour (github.com/charmbracelet/glamour)

v0.10.0

Compare Source

Actually readable tables

Big tables that included links were always hard to read. Links can be very long, and tables often have limited space to render them. This means that links often took the space of many lines and weren't properly clickable because they were being truncated in practice.

Starting on this release, Glamour will render links and images at the footer of the table, with a reference number so you can easily find the link you're looking for. If you want the old behavior, it is still supported via the new WithInlineTableLinks option.

The New Way

table_with_footer_links_and_images

The Old Way

Wanna render tables with inline links? You still can:

r, err := glamour.NewTermRenderer(glamour.WithInlineTableLinks(true))
if err != nil { /*...*/ }

out, err := r.RenderBytes(in)
if err != nil { /*...*/ }

fmt.Fprintf(os.Stdout, "%s\n", out)

table_with_inline_links_and_images

Prettier GitHub links

We also introduced a change so that GitHub links inside tables that reference issues, discussions or PRs will be shown in its shortened form, similar to how GitHub itself present the links on issue descriptions: owner/repo#123.

table_with_footer_auto_links_short

Extra

Also, we introduced WithTableWrap, so you can disable table text wrapping if really want:

r, err := glamour.NewTermRenderer(glamour.WithTableWrap(false))
if err != nil { ... }

out, err := r.RenderBytes(in)
if err != nil { ... }

fmt.Fprintf(os.Stdout, "%s\n", out)

Changelog

New Features
Bug fixes
Other work

The Charm logo

Thoughts? Questions? We love hearing from you. Feel free to reach out on Twitter, The Fediverse, or on Discord.


Configuration

📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, on day 1 of the month ( * 0-3 1 * * ) (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
Copy link
Contributor Author

renovate bot commented May 1, 2025

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 2 additional dependencies were updated

Details:

Package Change
github.com/charmbracelet/lipgloss v1.1.0 -> v1.1.1-0.20250404203927-76690c660834
github.com/charmbracelet/x/cellbuf v0.0.13-0.20250311204145-2c3ea96c31dd -> v0.0.13

@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/glamour to v0.10.0 fix(deps): update module github.com/charmbracelet/glamour to v0.10.0 - autoclosed May 28, 2025
@renovate renovate bot closed this May 28, 2025
@renovate renovate bot deleted the renovate/github.com-charmbracelet-glamour-0.x branch May 28, 2025 19:12
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/glamour to v0.10.0 - autoclosed fix(deps): update module github.com/charmbracelet/glamour to v0.10.0 Jun 1, 2025
@renovate renovate bot reopened this Jun 1, 2025
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-glamour-0.x branch from aca4db8 to 92400a7 Compare June 1, 2025 00:31
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-glamour-0.x branch from 92400a7 to 149a529 Compare June 21, 2025 15:27
@j178 j178 merged commit bc863bd into master Jun 21, 2025
2 checks passed
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/glamour to v0.10.0 fix(deps): update module github.com/charmbracelet/glamour to v0.10.0 - autoclosed Jun 21, 2025
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

Successfully merging this pull request may close these issues.

2 participants