fix(deps): update module github.com/charmbracelet/glamour to v0.10.0 #224
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v0.8.0
->v0.10.0
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
The Old Way
Wanna render tables with inline links? You still can:
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:Changelog
New Features
61cfc45
: feat(table): add ability to render links at the bottom (@andreynering)9d87373
: feat(table): pad position on table link list (@andreynering)42f47a2
: feat(table): prefix all links with the position in the footer (@andreynering)a11e9a0
: feat(table): show position of link also inside the table (@andreynering)549f544
: feat(table): update lipgloss + addWithTableWrap
setting (@andreynering)c9af045
: feat(tables): format github links inside tables in a more readable manner (@andreynering)f2eb484
: feat: add autolink package with patterns for more readable github urls (@andreynering)Bug fixes
61ff598
: fix(links): fix regression of auto links rendering twice (#415) (@andreynering)6c48e09
: fix: address linting issues after golangci-lint v2 update (@andreynering)5437e4a
: fix: ensure that prop is always cleared (@andreynering)Other work
6b09916
: ci: sync golangci-lint config (#414) (@github-actions[bot])9dfd865
: lint: fix linting for unused parameter (@andreynering)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
dddb9a7
: ci: sync golangci-lint config (#403) (@github-actions[bot])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.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
4c040b7
: feat: add term renderer option for chroma formatter (#395) (@williammartin)39de448
: feat(ci): use goreleaser (#348) (@aymanbagabas)Bug fixes
f43b1ad
: fix(tables): pin lipgloss to v1.1.0 for table improvements; update tests (#394) (@andreynering)bdc4ec5
: fix(table): fix rendering table in ascii-only mode (#393) (@andreynering)9cedaca
: fix: render right margin for block stack elements (#334) (@jahvon)Documentation updates
f29dc10
: docs(example): update example to demonstrate color downsampling (@meowgorithm)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.
This PR was generated by Mend Renovate. View the repository job log.