Sourced from github.com/charmbracelet/glamour's releases.
v0.9.1
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
- dddb9a72f081205b9e18a34d093c673230e96f8b: 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
Better Syntax Highlighting, Better Tables
It's totally time for a Glamour release right? This release features a nice lil' contribution from the
@githubCLI team and pulls in some big table improvements from Lip Gloss upstream. Let's go!Specifying Chroma Styles
Thanks to valiant efforts of
@andyfellerand@williammartinat@github, you can now useglamour.WithChromaFormatterto 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.WithOptionsas 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 not wrap appropriately instead of just being cut when it won't fit.
Changelog
New Features
- 4c040b7fd5c023154de93d5c0f789111ea06c82c: feat: add term renderer option for chroma formatter (#395) (
@williammartin)- 39de44871fad9d547af5975ae220f2034642304a: feat(ci): use goreleaser (#348) (
@aymanbagabas)Bug fixes
- f43b1ad9ef09b10a93837e07ae2c18b66bceac5c: fix(tables): pin lipgloss to v1.1.0 for table improvements; update tests (#394) (
@andreynering)- bdc4ec5217e146f5a57be8a3e0a14a3ddee3f749: fix(table): fix rendering table in ascii-only mode (#393) (
@andreynering)- 9cedacac492db45121a984505f3f4d87277dcde3: fix: render right margin for block stack elements (#334) (
@jahvon)Documentation updates
- f29dc10685689be9846671030e07a17f97bafb16: docs(example): update example to demonstrate color downsampling (
@meowgorithm)
... (truncated)
dddb9a7
ci: sync golangci-lint config (#403)f43b1ad
test(tables): pin lipgloss to v1.1.0 and update tests (#394)d1d5125
chore(deps): bump golang.org/x/net from 0.33.0 to 0.36.0 in /examples
(#400)3b686ba
chore(deps): bump golang.org/x/net from 0.33.0 to 0.36.0 (#399)4c040b7
feat: add term renderer option for chroma formatter (#395)3dc6c5b
chore(deps): bump golang.org/x/text from 0.22.0 to 0.23.0 (#397)5ad6fac
chore(deps): bump golang.org/x/term from 0.29.0 to 0.30.0 (#396)bdc4ec5
fix(table): fix rendering table in ascii-only mode (#393)b0776ab
chore(deps): bump github.com/yuin/goldmark-emoji from 1.0.4 to 1.0.5 (#391)ddc2451
chore(deps): bump golang.org/x/text from 0.21.0 to 0.22.0 (#392)