Markdown delimiters are formatting text past their limit

WHAT IS THE BUG

Markdown delimiters are formatting text past their limit.

When I wrap text between markdown delimiters like ` (inline code) or * (italic), the wrapped text is correctly formatted, but the text after the closing delimiter gets also formatted.

I have tested with ` and * and they work different. When using *, the text gets formatted as soon as I write the closing delimiter, while with ` it depends on what key is pressed after writing the closing delimiter (example bellow).

HOW TO REPRODUCE IT

  1. Go to any object

  2. Start writing the object’s body

  3. Type a markdown delimiter

  4. á…źType random characters

  5. Close the markdown delimiter

  6. This step depends on the markdown delimiter

    1. If you used ` and now press spacebar or an arrow key, the text gets formatted and the cursor goes one character back, falling into the formatted “area”. If, instead, you type a character, it gets correctly written outside of the formatted text.
    2. If you used *, the text got already formatted in step 5, and any new characters will be also formatted.

THE EXPECTED BEHAVIOR

Markdown delimiters should only affect the piece of text they wrap and the text shouldn’t get formatted until there’s a whitespace separating the closing delimiter. Anything I type after the closing delimiter should be normal text.

TECHNICAL INFORMATION

OS version: darwin arm64 14.5.0
App version: 0.55.0
Build number: build on 2026-04-29 14:10:53 +0000 UTC at #01df9ca47ab69cf2d4764332cafd8b6a3b382e42
Library version: v0.50.3
Anytype Identity: A7seP6gFpjHqEDJgEx8L1PiVy8nz4MrorAyYCUMpt5BZzDK2
Analytics ID: McRpWN9Nk2HkRQha1TZKwHNRzTb8bBr6BwZAzbKWg6JQu7Md
Device ID: 12D3KooWSjnx9CwiHYKokHm1wVjGcT9qu2TApKuTJ1Dqdps7xmdc
Ethereum Address: 0x9d8941E3ab2Fbcef1f5d30aa0bccF7Bcfe810216

Thanks for reporting this.

It’ll be fixed, it’s already been committed.