JetBrains / JetBrains/markdown

Incorrect HtmlBlockMarkerBlock token detection

Open
#131 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
958
Forks
104
Avg merge
17h 30m
Merged PRs (30d)
12

Description

1. Input `` or ` text ` is parsing like a single `HTML_BLOCK_CONTENT`.
2. Input `A ` is parsing as TEXT(`A`), WHITE_SPACE, HTML_TAG(``).
3. Input `A text ` is parsing as TEXT(`A`), WHITE_SPACE, HTML_TAG(``), WHITE_SPACE, TEXT(`text`), WHITE_SPACE, HTML_TAG(``).

The first inputs should work the same way as samples 2 and 3.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the HtmlBlockMarkerBlock token-detection code and reproduce the four inputs from the issue. The work is done when the first two inputs tokenize consistently with samples 2 and 3, rather than as a single HTML_BLOCK_CONTENT token.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.