Pasting rich text adds double line breaks

Steps to reproduce

  1. Copy formatted text that the originating app will encode as HTML on the pasteboard. Prefer something with bullet points, headings, and standard text.
  2. Paste this into Obsidian.
  3. Note the extra lines.
  4. Cmd/Ctrl-Z to undo
  5. Use Cmd+Option+Shift+V, and note that no headings or bullets are used. (this workaround eliminates duplicate lines in some formatted text, but not this kind)

Did you follow the troubleshooting guide? [Y/N]

Yes. Sandbox vault.

Expected result

Markdown that’s visually consistent with the original source.

Actual result

Extra line breaks are added.

Environment

SYSTEM INFO:
Obsidian version: v1.9.12
Installer version: v1.8.4
Operating system: Darwin Kernel Version 24.6.0: Mon Jul 14 11:30:29 PDT 2025; root:xnu-11417.140.69~1/RELEASE_ARM64_T6000 24.6.0
Login status: logged in
Language: en
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


Additional information

  1. Open Terminal.app.
  2. Type osascript -e 'the clipboard as record'
  3. Note the «class HTML»:«data HTML3C6D6.... Copy everything after “HTML”. Convert from hex to UTF8. (b = Buffer.from('<hex code>', 'hex').toString('uft8') in Node.js will do)
  4. Note the HTML structure includes <li><p>text here</p></li>. I suspect that having <li> AND <p> is somehow contributing to the mixup.

Screenshots

Original source, with and without styles:


Both result in the same extra blank lines in Obsidian.

HTML Source

See this pastebin (links not allowed…please update your instructions and remove Pastebin reference) for the HTML source, but none of the CSS from the original. It should still create the issue.

Hello. If the HTML placed in the clipboard contains a paragraph, the conversion that Obsidian makes is correct and I do not consider this a bug.

These two are not the same thing.

<li><p>text here</p></li>


<li>text here</li>

Manually forcing this conversion can have adverse consequences in other places.

You can open a FR asking for special handling of this case and we’ll think about it.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.