Crash on iOS when pasting text that contains Markdown formatting (e.g `[], #)

Describe the bug
When pasting text that contains Markdown formatting that’s recognized by Anytype on iOS, the app will crash.

Some examples of Markdown formatting that will crash Anytype - copying and pasting it into the iOS client should crash it:

# Heading 1
## Heading 2
### Heading 3
[] Checkbox

However, interestingly, the arrow key shortcut -> can be pasted without a crash.

To Reproduce
Steps to reproduce the behavior:

  1. Copy any text that contains the aforementioned Markdown formatting.
  2. Paste that aforementioned text into Anytype.
  3. The crash should occur.

Expected behavior
I’d expected the text I pasted to be input, without a crash, into the iOS client - perhaps with the Markdown formatting already applied.

System Information:

  • OS: iPadOS 15.4
  • Device Manufacturer/Model: Apple
  • Anytype Version: 0.11.0

Additional context
Here’s a video demonstrating this issue.