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

charmbracelet / glamour
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: feat/hide-link-url-500
DEFAULT BRANCH: master
Repo Added 21 Dec 2019 03:03AM UTC
Files 24
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

LAST BUILD ON BRANCH feat/hide-link-url-500
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • 312
  • add-contributing
  • app
  • auto-notty
  • bluemonday-bump
  • build
  • bump-bluemonday
  • bump-deps
  • charm-1225-whats-new-and-upgrade-guide
  • chroma
  • chroma-bump
  • ci-lint
  • ci/fix-lint
  • ci/go-1-22
  • ci/sync-dependabot-config
  • closed-writers
  • collectors-edition
  • colorprofile
  • consts
  • dependabot
  • dependabot/github_actions/actions/checkout-3
  • dependabot/github_actions/actions/checkout-4
  • dependabot/github_actions/actions/checkout-5
  • dependabot/github_actions/actions/setup-go-3
  • dependabot/github_actions/actions/setup-go-4
  • dependabot/github_actions/actions/setup-go-5
  • dependabot/github_actions/all-167a898cab
  • dependabot/github_actions/all-76468cb07f
  • dependabot/github_actions/golangci/golangci-lint-action-4
  • dependabot/github_actions/golangci/golangci-lint-action-5
  • dependabot/github_actions/golangci/golangci-lint-action-6
  • dependabot/go_modules/all-7c1956fefe
  • dependabot/go_modules/all-e74fac59ff
  • dependabot/go_modules/all-eac796ded4
  • dependabot/go_modules/examples/golang.org/x/net-0.38.0
  • dependabot/go_modules/github.com/alecthomas/chroma/v2-2.19.0
  • dependabot/go_modules/github.com/alecthomas/chroma/v2-2.20.0
  • dependabot/go_modules/github.com/alecthomas/chroma/v2-2.6.0
  • dependabot/go_modules/github.com/alecthomas/chroma/v2-2.7.0
  • dependabot/go_modules/github.com/alecthomas/chroma/v2-2.8.0
  • dependabot/go_modules/github.com/alecthomas/chroma/v2-2.9.1
  • dependabot/go_modules/github.com/charmbracelet/lipgloss-0.13.0
  • dependabot/go_modules/github.com/charmbracelet/lipgloss-0.13.1
  • dependabot/go_modules/github.com/charmbracelet/lipgloss-1.0.0
  • dependabot/go_modules/github.com/charmbracelet/x/ansi-0.10.1
  • dependabot/go_modules/github.com/charmbracelet/x/ansi-0.2.1
  • dependabot/go_modules/github.com/charmbracelet/x/ansi-0.2.2
  • dependabot/go_modules/github.com/charmbracelet/x/ansi-0.2.3
  • dependabot/go_modules/github.com/charmbracelet/x/ansi-0.3.0
  • dependabot/go_modules/github.com/charmbracelet/x/ansi-0.3.1
  • dependabot/go_modules/github.com/charmbracelet/x/ansi-0.3.2
  • dependabot/go_modules/github.com/charmbracelet/x/ansi-0.4.0
  • dependabot/go_modules/github.com/charmbracelet/x/ansi-0.4.2
  • dependabot/go_modules/github.com/charmbracelet/x/ansi-0.4.3
  • dependabot/go_modules/github.com/charmbracelet/x/ansi-0.4.5
  • dependabot/go_modules/github.com/charmbracelet/x/ansi-0.5.0
  • dependabot/go_modules/github.com/charmbracelet/x/ansi-0.5.2
  • dependabot/go_modules/github.com/charmbracelet/x/ansi-0.6.0
  • dependabot/go_modules/github.com/charmbracelet/x/ansi-0.7.0
  • dependabot/go_modules/github.com/charmbracelet/x/ansi-0.8.0
  • dependabot/go_modules/github.com/charmbracelet/x/ansi-0.9.2
  • dependabot/go_modules/github.com/charmbracelet/x/ansi-0.9.3
  • dependabot/go_modules/github.com/microcosm-cc/bluemonday-1.0.21
  • dependabot/go_modules/github.com/microcosm-cc/bluemonday-1.0.22
  • dependabot/go_modules/github.com/microcosm-cc/bluemonday-1.0.23
  • dependabot/go_modules/github.com/microcosm-cc/bluemonday-1.0.24
  • dependabot/go_modules/github.com/microcosm-cc/bluemonday-1.0.25
  • dependabot/go_modules/github.com/microcosm-cc/bluemonday-1.0.27
  • dependabot/go_modules/github.com/muesli/termenv-0.14.0
  • dependabot/go_modules/github.com/muesli/termenv-0.15.0
  • dependabot/go_modules/github.com/muesli/termenv-0.15.1
  • dependabot/go_modules/github.com/muesli/termenv-0.15.2
  • dependabot/go_modules/github.com/muesli/termenv-0.16.0
  • dependabot/go_modules/github.com/yuin/goldmark-1.5.2
  • dependabot/go_modules/github.com/yuin/goldmark-1.5.3
  • dependabot/go_modules/github.com/yuin/goldmark-1.5.4
  • dependabot/go_modules/github.com/yuin/goldmark-1.5.5
  • dependabot/go_modules/github.com/yuin/goldmark-1.5.6
  • dependabot/go_modules/github.com/yuin/goldmark-1.6.0
  • dependabot/go_modules/github.com/yuin/goldmark-1.7.0
  • dependabot/go_modules/github.com/yuin/goldmark-1.7.1
  • dependabot/go_modules/github.com/yuin/goldmark-1.7.10
  • dependabot/go_modules/github.com/yuin/goldmark-1.7.11
  • dependabot/go_modules/github.com/yuin/goldmark-1.7.12
  • dependabot/go_modules/github.com/yuin/goldmark-1.7.13
  • dependabot/go_modules/github.com/yuin/goldmark-1.7.6
  • dependabot/go_modules/github.com/yuin/goldmark-1.7.7
  • dependabot/go_modules/github.com/yuin/goldmark-1.7.8
  • dependabot/go_modules/github.com/yuin/goldmark-emoji-1.0.2
  • dependabot/go_modules/github.com/yuin/goldmark-emoji-1.0.5
  • dependabot/go_modules/github.com/yuin/goldmark-emoji-1.0.6
  • dependabot/go_modules/golang.org/x/net-0.17.0
  • dependabot/go_modules/golang.org/x/net-0.23.0
  • dependabot/go_modules/golang.org/x/net-0.33.0
  • dependabot/go_modules/golang.org/x/net-0.38.0
  • dependabot/go_modules/golang.org/x/net-0.7.0
  • dependabot/go_modules/golang.org/x/term-0.23.0
  • dependabot/go_modules/golang.org/x/term-0.24.0
  • dependabot/go_modules/golang.org/x/term-0.25.0
  • dependabot/go_modules/golang.org/x/term-0.26.0
  • dependabot/go_modules/golang.org/x/term-0.27.0
  • dependabot/go_modules/golang.org/x/term-0.28.0
  • dependabot/go_modules/golang.org/x/term-0.29.0
  • dependabot/go_modules/golang.org/x/term-0.31.0
  • dependabot/go_modules/golang.org/x/term-0.32.0
  • dependabot/go_modules/golang.org/x/term-0.33.0
  • dependabot/go_modules/golang.org/x/term-0.34.0
  • dependabot/go_modules/golang.org/x/text-0.22.0
  • dependabot/go_modules/golang.org/x/text-0.24.0
  • dependabot/go_modules/golang.org/x/text-0.25.0
  • dependabot/go_modules/golang.org/x/text-0.26.0
  • dependabot/go_modules/golang.org/x/text-0.27.0
  • dependabot/go_modules/golang.org/x/text-0.28.0
  • deps
  • docs/updating-golden-files
  • dracula
  • dracula-update
  • feat/hide-link-url-500
  • fix-autolink-347
  • fix-conceal-elements
  • fix-empty-line-comments
  • fix-register-style
  • fix-small-typo
  • fmap
  • gallery-script
  • github-actions
  • github-links-413
  • github-termenv
  • github-workflows
  • glamour-423
  • golangci-lint
  • goldmark-bump
  • goreleaser
  • imports
  • lint
  • lint-fix
  • list-indentation
  • main
  • master
  • patch2
  • pink
  • readme
  • readme-footer
  • refs/tags/v0.1
  • refs/tags/v0.1.0
  • refs/tags/v0.10.0
  • refs/tags/v0.2.0
  • refs/tags/v0.3.0
  • refs/tags/v0.4.0
  • refs/tags/v0.5.0
  • refs/tags/v0.6.0
  • refs/tags/v0.7.0
  • refs/tags/v0.8.0
  • refs/tags/v1.0.0
  • refs/tags/v2.0.0
  • small-fixes
  • stdin-stdout
  • styles
  • table-alignments-github-flavour
  • table-ascii
  • table-header-nits-416
  • table-links-401
  • table-resize
  • table-wrap-setting
  • termenv-next
  • test
  • tokyo
  • unparam
  • update-codeowners
  • use-document-margins
  • v2-exp
  • v2-hyperlink
  • v2-land
  • v2-no-auto
  • v2-readme
  • v2-remove-reflow
  • v2-update
  • vuln

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

Relevant lines Covered
Build:
Build:
1823 RELEVANT LINES 1527 COVERED LINES
2353.57 HITS PER LINE
Source Files on master
  • Tree
  • List 24
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
25449898536 feat/hide-link-url-500 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 click... Pull #531 06 May 2026 05:14PM UTC junhinhow github
83.76
24783307927 main chore: remove CODEOWNERS push 22 Apr 2026 02:19PM UTC andreynering github
83.99
22853561048 main fix(ci): use local golangci config push 09 Mar 2026 12:32PM UTC aymanbagabas github
83.99
22849044534 refs/tags/v2.0.0 chore: bump go version to 1.25.8 to fix net/url vulns push 09 Mar 2026 10:26AM UTC aymanbagabas github
83.99
22848967111 refs/tags/v1.0.0 chore(deps): bump actions/checkout from 5 to 6 in the all group (#491) Bumps the all group with 1 update: [actions/checkout](https://github.com/actions/checkout). Updates `actions/checkout` from 5 to 6 - [Release notes](https://github.com/actio... push 09 Mar 2026 10:24AM UTC web-flow github
83.22
22848577672 main chore: bump go version to 1.25.8 to fix net/url vulns push 09 Mar 2026 10:14AM UTC aymanbagabas github
83.99
22848331409 main Merge pull request #408 from charmbracelet/v2-exp (v2) migrate to v2 packages push 09 Mar 2026 10:07AM UTC web-flow github
83.99
22848304467 master Merge pull request #408 from charmbracelet/v2-exp (v2) migrate to v2 packages push 09 Mar 2026 10:07AM UTC web-flow github
83.99
22848177855 v2-exp docs: add v2 upgrade guide + release notes (#509) * docs: add v2 upgrade guide * Apply suggestions from code review Co-authored-by: Andrey Nering <andreynering@users.noreply.github.com> --------- Co-authored-by: Andrey Nering <andreynering@us... Pull #408 09 Mar 2026 10:03AM UTC web-flow github
83.99
22848179428 v2-exp docs: add v2 upgrade guide + release notes (#509) * docs: add v2 upgrade guide * Apply suggestions from code review Co-authored-by: Andrey Nering <andreynering@users.noreply.github.com> --------- Co-authored-by: Andrey Nering <andreynering@us... Pull #408 09 Mar 2026 10:03AM UTC web-flow github
83.99
See All Builds (743)
  • Repo on GitHub
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