You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Making the wrap length extremely long causes the URL to wrap on its own and then still functions as a valid link:
Another fix for this, which I believe better matches the markdown hyperlink style, would be to implement something like the escape code method proposed in charmbracelet/glow#237. This method also survives when going through a line break/text wrap:
Upon closer examination, it appears this issue is within glamour, not glow, and has been identified already. I did some further digging into fixing things and solving it potentially with json styling, but unfortunately this doesn't work. I believe this issue should be moved to glamour. It is similar to glamour#114 although that is a feature request for anchor style hyperlinks, while this pertains more to the github cli issue in that a forced text wrap by glamour breaks links.
Is this really addressed with #411? I have updated to v0.10.0 and then to latest and still have that problem with a long url like "## More Information\n\nURL" when it exceeds the width. I have tried to wrap the URL in a table and the URL is still broken when clicked.
When I click this link, I "get //hamburgwhl.infomaxnet.de/standard_widget_de/e-ankunft-aidaper" instead of the full link.
Activity
EricAndrechek commentedon May 17, 2022
Upon closer examination, it appears this issue is within glamour, not glow, and has been identified already. I did some further digging into fixing things and solving it potentially with json styling, but unfortunately this doesn't work. I believe this issue should be moved to glamour. It is similar to glamour#114 although that is a feature request for anchor style hyperlinks, while this pertains more to the github cli issue in that a forced text wrap by glamour breaks links.
caarlos0 commentedon Jul 16, 2024
fwiw, the main issue isn't even the long description, but a URL > width, e.g.:
will render:
test: #149
caarlos0 commentedon Jul 17, 2024
unfortunately not sure if we can do something about this :/
fix: many rendering issues (#317)
fix: many rendering issues (#317)
aymanbagabas commentedon Mar 10, 2025
This might be solved by charmbracelet/x#350
refactor(ansi): drop reflow and use cellbuf.Wrap
refactor(ansi): drop reflow and use cellbuf.Wrap
refactor(ansi): drop reflow and use cellbuf.Wrap
chore: merge v2-remove-reflow into v2-exp (#409)
andreynering commentedon Mar 28, 2025
Fixed by #411.
bendecaf commentedon Apr 21, 2025
Is this really addressed with #411? I have updated to v0.10.0 and then to latest and still have that problem with a long url like "## More Information\n\nURL" when it exceeds the width. I have tried to wrap the URL in a table and the URL is still broken when clicked.
When I click this link, I "get //hamburgwhl.infomaxnet.de/standard_widget_de/e-ankunft-aidaper" instead of the full link.
andreynering commentedon Apr 22, 2025
@bzeiss This should be fixed on the
v2-expbranch. You can try it and follow development on this PR: #408Fix URL broken when word-wrapped
Fix URL broken when word-wrapped