Skip to content

Consecutive inline elements are treated as text #256

Description

@c-harding

Environment

Comark Version

https://comark.dev/play/editor on 2026-06-26

Reproduction

https://comark.dev/play/editor?example=all-features

with the following content:

:b[text]:i[text]

Description

When two inline elements after one another occur, without a space, the latter is treated as text. Its body is then treated as a span.

Input

:b[text]:i[text]

Actual output

<b>text</b>:i<span>text</span>

Expected output

<b>text</b><i>text</i>

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions