• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

charmbracelet / glamour / 25449898536
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: feat/hide-link-url-500
DEFAULT BRANCH: master
Ran 06 May 2026 05:14PM UTC
Jobs 1
Files 24
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Apr 2026 02:51AM UTC coverage: 83.763% (-0.2%) from 83.993%
25449898536

Pull #531

github

junhinhow
feat: add WithHiddenLinks option to hide URL display

Add a WithHiddenLinks() renderer option that hides the URL portion of
links, showing only the styled link text. This is useful for terminals
that support OSC 8 hyperlinks where the URL is clickable and displaying
it as text is redundant.

Usage:
  r, _ := glamour.NewTermRenderer(
      glamour.WithStandardStyle("dark"),
      glamour.WithHiddenLinks(),
  )

Before: "click here https://example.com"
After:  "click here" (with OSC 8 hyperlink, clickable)

Implementation:
- Added HideLinks bool to ansi.Options
- When enabled, sets SkipHref on LinkElement for regular links
- WithHiddenLinks() public option in glamour.go
- Auto-link elements are unaffected (they show only the URL by design)

Closes #500
Pull Request #531: feat: add WithHiddenLinks option to hide URL display

1 of 6 new or added lines in 2 files covered. (16.67%)

1527 of 1823 relevant lines covered (83.76%)

2353.57 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
69.77
-2.09% glamour.go
Jobs
ID Job ID Ran Files Coverage
1 25449898536.1 06 May 2026 05:14PM UTC 24
83.76
GitHub Action Run
Source Files on build 25449898536
  • Tree
  • List 24
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #531
  • PR Base - main (#24783307927)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc