Skip to content

Links can start inside of words #90

@Simon-Laux

Description

@Simon-Laux

We should prevent that while still allowing like in parenthesis for example.

Examples:

input (in text mode):

msg parser bug: **Subtitel:** Nahtlos
titel:11

expected:

[
    {
        "t": "Text",
        "c": "msg parser bug: **Subtitel:** Nahtlos"
    }
]
[
    {
        "t": "Text",
        "c": "titel:11"
    }
]

actual:

[
    {
        "t": "Text",
        "c": "msg parser bug: **Subti"
    },
    {
        "t": "Link",
        "c": {
            "destination": {
                "target": "tel:**",
                "scheme": "tel"
            }
        }
    },
    {
        "t": "Text",
        "c": " Nahtlos"
    }
]
[
    {
        "t": "Text",
        "c": "ti"
    },
    {
        "t": "Link",
        "c": {
            "destination": {
                "target": "tel:11",
                "scheme": "tel"
            }
        }
    }
]

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