chore: bump github.com/charmbracelet/glamour from 0.6.0 to 0.10.0
Type: Pull Request
State: Closed
Association: Contributor
Comments: 0
(6 months ago)
(6 months ago)
(6 months ago)
stale dependencies go
Bumps github.com/charmbracelet/glamour from 0.6.0 to 0.10.0.
Release notes
Sourced from github.com/charmbracelet/glamour's releases.
v0.10.0
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
WithInlineTableLinksoption.The New Way
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)
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.
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
... (truncated)
Commits
05ee9b5v0.10.0c9af045feat(tables): format github links inside tables in a more readable mannerf2eb484feat: add autolink package with patterns for more readable github urls9d87373feat(table): pad position on table link lista11e9a0feat(table): show position of link also inside the table42f47a2feat(table): prefix all links with the position in the footer61cfc45feat(table): add ability to render links at the bottom5437e4afix: ensure that prop is always cleared60534f9chore(deps): bump golang.org/x/term from 0.30.0 to 0.31.0 (#418)606f55achore(deps): bump golang.org/x/text from 0.23.0 to 0.24.0 (#419)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Pull Request Statistics
1
2
+84
-66
Package Dependencies
github.com/charmbracelet/glamour
go
0.6.0 → 0.10.0
Minor
Technical Details
| ID: | 119432 |
| UUID: | 2485838447 |
| Node ID: | PR_kwDOLmBl1M6UKuJv |
| Host: | GitHub |
| Repository: | Txim0520/https-github.com-coder-coder |
| Mergeable: | Yes |
| Merge State: | Unstable |