Skip to content

fix(markdown): keep link icons and prefixes on the URL line and match overflow-wrap - #1364

Merged
Hona merged 1 commit into
devfrom
fix/markdown-link-icon-wrap
Nov 26, 2026
Merged

Hona merged 1 commit into
devfrom
fix/markdown-link-icon-wrap

Conversation

@Hona

@Hona Hona commented Nov 26, 2026

Copy link
Copy Markdown
Member

Root cause

  • When a Markdown link's inline icon started a line before a URL wider than the remaining column width, Parley took the soft wrap opportunity after the zero-height InlineBox, stranding the icon on an invisible 0 px line at the same y as the URL line so bare_icons drew it up into the preceding line (overlapping packages/ui).
  • Pushing a split link to the next line capped after attached non-whitespace prefixes (such as (), stranding ( at the end of the previous line.
  • Official Desktop's [data-component="markdown"] sets overflow-wrap: break-word (packages/session-ui/src/components/markdown.css:54), whereas session-view and files Markdown left wrap_anywhere off.

Changes

  • Cargo.toml, Cargo.lock: bump anomalyco/rune to 81ec8ecc (includes anomalyco/rune#2498).
  • crates/session-view/src/style.rs, features/files/src/markdown.rs: enable .wrap_anywhere(true) on Markdown to match packages/session-ui/src/components/markdown.css:54 (overflow-wrap: break-word), wrapping long URLs inside the column while scroll_wide(true) keeps code blocks and wide tables scrolling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant