docs: add v2 upgrade guide + release notes#509
Open
aymanbagabas wants to merge 1 commit intov2-expfrom
Open
Conversation
andreynering
approved these changes
Mar 4, 2026
| ## Update Dependencies | ||
|
|
||
| ```bash | ||
| go get charm.land/glamour/v2 |
Member
There was a problem hiding this comment.
Suggested change
| go get charm.land/glamour/v2 | |
| go get charm.land/glamour/v2@latest |
| If you need color downsampling (most apps do): | ||
|
|
||
| ```bash | ||
| go get charm.land/lipgloss/v2 |
Member
There was a problem hiding this comment.
Suggested change
| go get charm.land/lipgloss/v2 | |
| go get charm.land/lipgloss/v2@latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Add v2 upgrade guide
Release notes
What's New in Glamour v2
We're excited to announce the second major release of Glamour!
❤️ Charm Land Import Path
We've updated our import paths to use vanity domains and use our domain to import Go packages.
💄 Lip Gloss v2 Integration
Glamour v2 now uses Lip Gloss v2 under the hood, bringing improved performance and more consistent styling across the Charm ecosystem.
Since Glamour is designed to be pure (same input = same output), it doesn't peek at your terminal's capabilities. Instead, color downsampling is handled explicitly via Lip Gloss when you're ready to render:
No more I/O fights between Glamour and Lip Gloss. Glamour focuses on rendering, Lip Gloss handles the colors. Everyone's happy!
🌏 Better Text Wrapping
Text wrapping has been rewritten using
lipgloss.Wrap, which means way better handling of:Your Japanese documentation, emoji-filled READMEs, and creative Unicode art will all render beautifully now.
🔗 Hyperlink Support
Glamour now supports ANSI hyperlinks! If your terminal supports OSC 8 (and many modern terminals do), your links can be clickable. No changes needed, it just works.
Which terminals support OSC 8 hyperlinks?
📧 Cleaner Email Rendering
Email autolinks now hide the
mailto:prefix for a cleaner look while remaining functional. Because nobody wants to readmailto:in their rendered markdown.🌙 Dark is the New Default
The
WithAutoStyle()option andAutoStylehave been removed. The default style is now"dark", which works well across most terminals. You can still explicitly choose any style:Simpler is better!
🎨 Color Profile Changes
The
WithColorProfile()option has been removed. Color adaptation is now handled by Lip Gloss when rendering output:This separation of concerns makes Glamour's rendering more predictable and testable.
👋 Farewell, Overline
The
Overlinedfield has been removed from all style primitives. It was rarely used and not widely supported across terminals. If you need similar visual separation, consider using underline, bold, or background colors instead.🐛 Bug Fixes
Feedback
Have thoughts on Glamour v2? We'd love to hear about it. Let us know on…
Part of Charm.
Charm热爱开源 • Charm loves open source