Skip to content

Italic with no selection fails to find word  #75

Open
@johndavidpearce

Description

@johndavidpearce

When the cursor is positioned over/near a word ctrl+b (or Bold button) produces bold as expected:

Hello world|.
[ctrl+b]
Hello |**world**|.

However, ctrl+i (or Italic button) produces error:

[getWordRangeAtPosition]: ignoring custom regexp '\_?[A-Za-z\u00C0-\u017F]*\_?' because it matches the empty string.

Work around: use ctrl+b+b+i or cmd+D, ctrl+i to select word before applying italic.

VS Code Version: 1.82.2 (Universal)
Markdown Shortcuts Version: v0.12.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions