Skip to content

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

Merged
koki-develop merged 1 commit intomainfrom
renovate/github.com-charmbracelet-glamour-0.x
Apr 20, 2025
Merged

fix(deps): update module github.com/charmbracelet/glamour to v0.10.0#127
koki-develop merged 1 commit intomainfrom
renovate/github.com-charmbracelet-glamour-0.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Mar 15, 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.

@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented Mar 15, 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):

  • 5 additional dependencies were updated

Details:

Package Change
github.com/charmbracelet/lipgloss v0.12.1 -> v1.1.1-0.20250404203927-76690c660834
github.com/mattn/go-runewidth v0.0.15 -> v0.0.16
github.com/muesli/termenv v0.15.3-0.20240618155329-98d742f6907a -> v0.16.0
github.com/yuin/goldmark v1.7.4 -> v1.7.8
github.com/yuin/goldmark-emoji v1.0.3 -> v1.0.5

@renovate renovate Bot force-pushed the renovate/github.com-charmbracelet-glamour-0.x branch from 60ab83d to 9b15024 Compare March 16, 2025 18:26
@renovate renovate Bot changed the title Update module github.com/charmbracelet/glamour to v0.8.1 Update module github.com/charmbracelet/glamour to v0.9.0 Mar 16, 2025
@renovate renovate Bot force-pushed the renovate/github.com-charmbracelet-glamour-0.x branch from 9b15024 to 047aedb Compare March 19, 2025 02:12
@renovate renovate Bot changed the title Update module github.com/charmbracelet/glamour to v0.9.0 Update module github.com/charmbracelet/glamour to v0.9.1 Mar 19, 2025
@renovate renovate Bot force-pushed the renovate/github.com-charmbracelet-glamour-0.x branch 2 times, most recently from 5f3be84 to b30f093 Compare April 16, 2025 21:34
@renovate renovate Bot changed the title Update module github.com/charmbracelet/glamour to v0.9.1 Update module github.com/charmbracelet/glamour to v0.10.0 Apr 16, 2025
@renovate renovate Bot force-pushed the renovate/github.com-charmbracelet-glamour-0.x branch 3 times, most recently from 754a337 to de68f0d Compare April 19, 2025 22:47
@renovate renovate Bot changed the title Update module github.com/charmbracelet/glamour to v0.10.0 fix(deps): update module github.com/charmbracelet/glamour to v0.10.0 Apr 19, 2025
@renovate renovate Bot force-pushed the renovate/github.com-charmbracelet-glamour-0.x branch from de68f0d to 43d607f Compare April 19, 2025 23:52
@renovate renovate Bot force-pushed the renovate/github.com-charmbracelet-glamour-0.x branch from 43d607f to af6bf5a Compare April 20, 2025 00:13
@koki-develop koki-develop merged commit 4bba5f5 into main Apr 20, 2025
3 checks passed
@koki-develop koki-develop deleted the renovate/github.com-charmbracelet-glamour-0.x branch April 20, 2025 00:16
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.

1 participant