Skip to content

Inline code‘s mid-word line-crossing #23110

Closed

Description

@PtJade-Ceramic

The problem

Inline code crosses a line mid-word.

Release version

3.6.10 (x64)

Operating system

Windows 11

Steps to reproduce the behavior

No response

Log files

No response

Screenshots

Image

Additional context

No response

Activity

  1. desktop-triage commented on Nov 2, 2026

    @desktop-triage

    Triage summary: This is a reproducible rendering defect — inline code spans visually break across the mid-word boundary instead of wrapping as a whole unit, per the attached screenshot. I'm suggesting bug and priority-3 (cosmetic, no workflow blocker, workaround is trivial — just visually noisy). No duplicate issues found; #18104 and #18291 concern commit-message input formatting support, not rendered markdown display wrapping, so they're different.

    Initial hypothesis: GitHub Desktop renders markdown (e.g. issue/PR bodies, release notes) inside a sandboxed iframe styled by app/static/common/markdown.css, loaded via sandboxed-markdown.tsx. The outer .markdown-body rule sets word-wrap: break-word (

    .markdown-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: var(--font-size);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.5;
    word-wrap: break-word;
    margin: 0;
    }
    ), which is inherited by inline code/tt elements (
    .markdown-body code,
    .markdown-body tt {
    padding: .2em .4em;
    margin: 0;
    font-size: 85%;
    background-color: var(--md-neutral-muted-color);
    border-radius: 6px
    }
    ) since there is no overriding word-break/white-space rule scoped to inline code (only pre/pre code get word-break: normal at
    .markdown-body pre {
    word-wrap: normal
    }
    .markdown-body pre code {
    font-size: 100%
    }
    .markdown-body pre>code {
    padding: 0;
    margin: 0;
    word-break: normal;
    white-space: pre;
    background: transparent;
    border: 0
    }
    ). When an inline code span is wider than the available line width — common with long unbroken identifiers — the browser's break-word behavior allows the break to occur inside the code span itself rather than only at whitespace, producing the mid-word split seen in the screenshot. No reproduction steps, specific text sample, or app log were provided, so this remains an untested hypothesis pending confirmation of exactly where (issue body preview, release notes, PR description, etc.) and with what content the break occurs.

    Generated by Issue Triage (skills-driven) for #23110 · auto · 49.3 AIC · ⊞ 4.5K · ◷

  2. added
    bug
    priority-3
    on Nov 4, 2026
  3. DylanDevelops commented on Nov 10, 2026

    @DylanDevelops
    Contributor

    This was an easy fix (I think). My change in PR #23152 also fixes this for other dialogs so the issue shouldn't occur in any other places.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority-3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions