Skip to content

[Bug] Hangs editor tab on pasting invalid text block. #130

Description

@chernser

Bug Description

Description

When pasting an invalid text into an editor (VSCode) no text is inserted only spinning wheel shown. When extension is disabled - everything is fine.

I've attached GPT generated text file where I've borrowed this wonderful text

invalid_markdown.md

Steps to Reproduce

  • Copy invalid text into an md document
  • Observe no text is inserted

Expected Behavior

  • no delay on text copy-pasting

Actual Behavior

no text is inserted only spinning wheel shown

Environment

  • Mac OS 15
  • m3

Sample Input

#InvalidHeading42
## Duplicate Heading
## Duplicate Heading
Heading setext style but broken
---=
>NoSpaceBlockquote42
*Unclosed emphasis line 42
**Mismatched bold* 42
Backtick `unclosed code span 42
[Broken link text 42](not a url)
[ref style link 42][missing-ref-42]
Image with empty alt ![](http://example.com/img42.png "title with "quote")
![bad](not a url 42)
<div class=test><span><em>Unclosed HTML 42

Configuration File

default

Additional Context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: triageNeeds review and prioritizationtype: bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions