Skip to content

fix(deps): update module github.com/charmbracelet/glamour to v0.10.0 #224

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 13, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/charmbracelet/glamour v0.8.0 -> 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.

v0.9.1

Compare Source

Some users were reporting occasional checksum miss matches when building using Glamour v0.9.0.
This release provides a new tag to hopefully fix this.

Changelog

Other work

The Charm logo

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

v0.9.0

Compare Source

Better Syntax Highlighting, Better Tables

It's totally time for a Glamour release right? This release features a nice lil' contribution from the @​github CLI team and pulls in some big table improvements from Lip Gloss upstream. Let's go!

Specifying Chroma Styles

Thanks to valiant efforts of @​andyfeller and @​williammartin at @​github, you can now use glamour.WithChromaFormatter to specify an exact Chroma style to use, independent of the higher level style.

myHotOps := glamour.WithOptions(
    glamour.WithChromaFormatter("terminal16"),
    glamour.WithStandardStyle("dark"),
)

As a bonus, you can also use glamour.WithOptions as a meta layer for grouping options.

Better Tables

This release also reaps the benefits from the table rendering overhaul in Lip Gloss v1.1.0! Glamour will now be much smarter when it comes to deciding column widths, and the content will now wrap appropriately instead of just being cut when it won't fit.

Changelog

New Features
Bug fixes
Documentation updates

The Charm logo

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

v0.8.1

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.

Copy link
Contributor Author

renovate bot commented Mar 13, 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):

  • 6 additional dependencies were updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.21 -> 1.23.0
github.com/charmbracelet/lipgloss v0.12.1 -> v1.1.1-0.20250404203927-76690c660834
github.com/yuin/goldmark v1.7.4 -> v1.7.8
github.com/yuin/goldmark-emoji v1.0.3 -> v1.0.5
golang.org/x/sys v0.30.0 -> v0.32.0
golang.org/x/term v0.27.0 -> v0.31.0
golang.org/x/text v0.21.0 -> v0.24.0

@renovate renovate bot requested a review from lpsm-dev as a code owner March 13, 2025 16:31
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-glamour-0.x branch from d7b16c5 to dc6b6d3 Compare March 13, 2025 21:31
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/glamour to v0.8.1 fix(deps): update module github.com/charmbracelet/glamour to v0.9.0 Mar 13, 2025
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/glamour to v0.9.0 fix(deps): update module github.com/charmbracelet/glamour to v0.9.1 Mar 18, 2025
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-glamour-0.x branch from dc6b6d3 to 26472ab Compare March 18, 2025 19:27
@renovate renovate bot force-pushed the renovate/github.com-charmbracelet-glamour-0.x branch from 26472ab to 8d1dd92 Compare April 16, 2025 23:01
@renovate renovate bot changed the title fix(deps): update module github.com/charmbracelet/glamour to v0.9.1 fix(deps): update module github.com/charmbracelet/glamour to v0.10.0 Apr 16, 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.

0 participants