Incorrect line wrapping of punctuation and spaces immediately after italic text

Steps to reproduce

  1. Open the Sandbox vault and edit a note in Live Preview.
  2. Paste this paragraph (the filler text is intentional):
Rano przejrzałem sobie katalog płyt winylowych w rzeszowskim antykwariacie, a po 12:00 pojechałem tam, żeby zrobić zakupy. Kupiłem pięć płyt. Była też taka jedna w stylu modern jazz xxx xxx xxx xxx xxx xxx xxx xxx xxx xpod tytułem _Na Kosmodromie,_ która kosztowała sto siedemdziesiąt złotych. Zrezygnowałem z niej.
  1. Adjust the note pane width until the italicized title and comma end a displayed line. The developer tools screenshot shows the affected div.cm-line.cm-active element at 620 × 96 CSS pixels, with a font size of 16px. Matching the font settings may also be necessary.
  2. Observe the beginning of the next displayed line.
  3. Move the comma outside the italic formatting, changing _Na Kosmodromie,_ która to _Na Kosmodromie_, która, and adjust the pane width if needed.

Did you read and follow the Troubleshooting Guide? [Yes/No]

The issue was reproduced in the Sandbox vault. Both variants below were reproduced there.

Expected result

The comma should remain attached to the preceding word, moving together with that word if a line break is necessary. The ordinary space separating words should not render as visible indentation at the start of a wrapped line.

Actual result

  • Comma outside italics: With _Na Kosmodromie_, która, the comma can wrap independently to the beginning of the next line.
  • Comma inside italics: With _Na Kosmodromie,_ która, the space after the italicized fragment appears at the beginning of the next line before the first character, creating visible indentation.

These are automatic visual line wraps, not intentional paragraph breaks in the example Markdown.

Environment

  • Sandbox vault: reproduced.
  • The Sandbox developer tools screenshot shows a CodeMirror editor line (div.cm-line.cm-active), consistent with Live Preview.
  • Obsidian and installer version: 1.14.4.
  • Operating system: Darwin 27.0.0, ARM64.
  • Live Preview: on.
  • Community theme: none; CSS snippets enabled: 0; Restricted mode: on.
SYSTEM INFO:
    Obsidian version: 1.14.4
    Installer version: 1.14.4
    Operating system: Darwin Kernel Version 27.0.0: Tue Aug 11 21:05:48 PDT 2026; root:xnu-13432.1.9~1/RELEASE_ARM64_T6041 27.0.0
    Login status: logged in
    Language: pl
    Catalyst license: none
    Insider build toggle: off
    Live preview: on
    Base theme: adapt to system
    Community theme: none
    Snippets enabled: 0
    Restricted mode: on

RECOMMENDATIONS:
    none

Screenshots

Attach both Sandbox screenshots:


  • Zrzut ekranu 2026-10-16 o 09.47.51.png: comma at the start of a wrapped line, without the developer tools overlay.
  • Zrzut ekranu 2026-10-16 o 09.48.04.png: the same issue with the developer tools overlay showing the element dimensions and font size.

The space variant was also reproduced in the Sandbox vault; the two screenshots above document the comma variant.

Hi. Subset of: