MacOS: Pasted Markdown only formats correct after each line is refreshed

Describe the bug
Markdown text copied from another app (in this case Obsidian) pastes correctly into a note, but remains formatted as ‘raw’ markdown. Only after moving the cursor over each line does the formatting display properly. Closing and re-opening the object does not change the appearance.

To Reproduce
Steps to reproduce the behavior:

  1. Copy markdown text from another document
  2. Create a new note in Anytype
  3. Paste the text into the note
  4. See raw markdown
  5. Move cursor over each line to refresh formatting

Expected behavior
The expected behavior would be for the proper format to show after pasting or at least after closing the object.

System Information:

  • OS: MacOS Monterey 12.4
  • Device Manufacturer/Model: Macbook Pro, M1 Pro 10/16, 16GB
  • Anytype Version: 0.25.4

Additional context

Pasted in Anytype

After Refresh of each line (and Latex slash command added)

Hi, I can confirm this issue. However, there seems to be some interesting quirks that might be worth mentioning.

It appears that only pasting from a source that only places a Plain Text pasteboard type (public.utf8-plain-text) into the Mac clipboard causes this issue, while rich text or HTML does not cause this issue

As a workaround, you can paste the raw text into a RTF/HTML capable text editor, such as the built-in Notes app on Mac, and paste it back into Anytype.

1 Like