- Notifications
You must be signed in to change notification settings - Fork913
Commitc0ca47d
authored
chore: bump github.com/charmbracelet/glamour from 0.9.1 to 0.10.0 (#17476)
Bumps[github.com/charmbracelet/glamour](https://github.com/charmbracelet/glamour)from 0.9.1 to 0.10.0.<details><summary>Release notes</summary><p><em>Sourced from <ahref="https://github.com/charmbracelet/glamour/releases">github.com/charmbracelet/glamour'sreleases</a>.</em></p><blockquote><h2>v0.10.0</h2><h1>Actually readable tables</h1><p>Big tables that included links were always hard to read. Links can bevery long, and tables often have limited space to render them. Thismeans that links often took the space of many lines and weren't properlyclickable because they were being truncated in practice.</p><p>Starting on this release, Glamour will render links and images at thefooter of the table, with a reference number so you can easily find thelink you're looking for. If you want the old behavior, it is stillsupported via the new <code>WithInlineTableLinks</code> option.</p><h2>The New Way</h2><p><imgsrc="https://github.com/user-attachments/assets/9ea84076-c318-4835-b5be-a583745a4953"alt="table_with_footer_links_and_images" /></p><h2>The Old Way</h2><p>Wanna render tables with inline links? You still can:</p><pre lang="go"><code>r, err :=glamour.NewTermRenderer(glamour.WithInlineTableLinks(true))if err != nil { /*...*/ }<p>out, err := r.RenderBytes(in)<br />if err != nil { /<em>...</em>/ }</p><p>fmt.Fprintf(os.Stdout, "%s\n", out)<br /></code></pre></p><p><imgsrc="https://github.com/user-attachments/assets/de3d3d33-9592-44ea-99d2-f3d8e9e94f9c"alt="table_with_inline_links_and_images" /></p><h1>Prettier GitHub links</h1><p>We also introduced a change so that GitHub links inside tables thatreference issues, discussions or PRs will be shown in its shortenedform, similar to how GitHub itself present the links on issuedescriptions: <code>owner/repo#123</code>.</p><p><imgsrc="https://github.com/user-attachments/assets/8adb2498-a361-4749-8e98-02f17d4f9062"alt="table_with_footer_auto_links_short" /></p><h1>Extra</h1><p>Also, we introduced <code>WithTableWrap</code>, so you can disabletable text wrapping if really want:</p><pre lang="go"><code>r, err :=glamour.NewTermRenderer(glamour.WithTableWrap(false))if err != nil { ... }<p>out, err := r.RenderBytes(in)<br />if err != nil { ... }</p><p>fmt.Fprintf(os.Stdout, "%s\n", out)<br /></code></pre></p><h2>Changelog</h2><h3>New Features</h3><!-- raw HTML omitted --></blockquote><p>... (truncated)</p></details><details><summary>Commits</summary><ul><li><ahref="https://github.com/charmbracelet/glamour/commit/05ee9b5f4dcf3e4426c4ba41e1f9d7ea4f34d603"><code>05ee9b5</code></a>v0.10.0</li><li><ahref="https://github.com/charmbracelet/glamour/commit/c9af0458d403e584402ff683e0e8403a194d73d3"><code>c9af045</code></a>feat(tables): format github links inside tables in a more readablemanner</li><li><ahref="https://github.com/charmbracelet/glamour/commit/f2eb484a992f6a31bad968205b6d63719b8c7fa2"><code>f2eb484</code></a>feat: add autolink package with patterns for more readable githuburls</li><li><ahref="https://github.com/charmbracelet/glamour/commit/9d873734c11cf9d1e29853643a751624042df3b0"><code>9d87373</code></a>feat(table): pad position on table link list</li><li><ahref="https://github.com/charmbracelet/glamour/commit/a11e9a0c3a66a55d411a0aa4dcd6685d4ba9d823"><code>a11e9a0</code></a>feat(table): show position of link also inside the table</li><li><ahref="https://github.com/charmbracelet/glamour/commit/42f47a22f34bbbf73421210e7aff4f6438ffd052"><code>42f47a2</code></a>feat(table): prefix all links with the position in the footer</li><li><ahref="https://github.com/charmbracelet/glamour/commit/61cfc45c6bcd582a4d0ca810690d668f276ede13"><code>61cfc45</code></a>feat(table): add ability to render links at the bottom</li><li><ahref="https://github.com/charmbracelet/glamour/commit/5437e4a1a7dfc095a4afe063feaab079ab5a9629"><code>5437e4a</code></a>fix: ensure that prop is always cleared</li><li><ahref="https://github.com/charmbracelet/glamour/commit/60534f9196f23ed0849ba1ac05df41325d8968b5"><code>60534f9</code></a>chore(deps): bump golang.org/x/term from 0.30.0 to 0.31.0 (<ahref="https://redirect.github.com/charmbracelet/glamour/issues/418">#418</a>)</li><li><ahref="https://github.com/charmbracelet/glamour/commit/606f55a8d8fe2adc7251ad2e269fe9f4a32a0172"><code>606f55a</code></a>chore(deps): bump golang.org/x/text from 0.23.0 to 0.24.0 (<ahref="https://redirect.github.com/charmbracelet/glamour/issues/419">#419</a>)</li><li>Additional commits viewable in <ahref="https://github.com/charmbracelet/glamour/compare/v0.9.1...v0.10.0">compareview</a></li></ul></details><br />[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)Dependabot will resolve any conflicts with this PR as long as you don'talter it yourself. You can also trigger a rebase manually by commenting`@dependabot rebase`.[//]: # (dependabot-automerge-start)[//]: # (dependabot-automerge-end)---<details><summary>Dependabot commands and options</summary><br />You can trigger Dependabot actions by commenting on this PR:- `@dependabot rebase` will rebase this PR- `@dependabot recreate` will recreate this PR, overwriting any editsthat have been made to it- `@dependabot merge` will merge this PR after your CI passes on it- `@dependabot squash and merge` will squash and merge this PR afteryour CI passes on it- `@dependabot cancel merge` will cancel a previously requested mergeand block automerging- `@dependabot reopen` will reopen this PR if it is closed- `@dependabot close` will close this PR and stop Dependabot recreatingit. You can achieve the same result by closing it manually- `@dependabot show <dependency name> ignore conditions` will show allof the ignore conditions of the specified dependency- `@dependabot ignore this major version` will close this PR and stopDependabot creating any more for this major version (unless you reopenthe PR or upgrade to it yourself)- `@dependabot ignore this minor version` will close this PR and stopDependabot creating any more for this minor version (unless you reopenthe PR or upgrade to it yourself)- `@dependabot ignore this dependency` will close this PR and stopDependabot creating any more for this dependency (unless you reopen thePR or upgrade to it yourself)</details>Signed-off-by: dependabot[bot] <support@github.com>Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>1 parent6c1f0d4 commitc0ca47d
2 files changed
+12
-9
lines changedLines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
91 | 91 |
| |
92 | 92 |
| |
93 | 93 |
| |
94 |
| - | |
95 |
| - | |
| 94 | + | |
| 95 | + | |
96 | 96 |
| |
97 | 97 |
| |
98 | 98 |
| |
| |||
481 | 481 |
| |
482 | 482 |
| |
483 | 483 |
| |
484 |
| - | |
| 484 | + | |
485 | 485 |
| |
486 | 486 |
| |
487 | 487 |
| |
| |||
507 | 507 |
| |
508 | 508 |
| |
509 | 509 |
| |
| 510 | + | |
510 | 511 |
| |
511 | 512 |
| |
512 | 513 |
| |
|
Lines changed: 8 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
843 | 843 |
| |
844 | 844 |
| |
845 | 845 |
| |
846 |
| - | |
847 |
| - | |
848 |
| - | |
849 |
| - | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
850 | 850 |
| |
851 | 851 |
| |
852 |
| - | |
853 |
| - | |
| 852 | + | |
| 853 | + | |
854 | 854 |
| |
855 | 855 |
| |
| 856 | + | |
| 857 | + | |
856 | 858 |
| |
857 | 859 |
| |
858 | 860 |
| |
|
0 commit comments
Comments
(0)