Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug][minor] Improper markdown highlighting in nested nodes #13

Open
Varun0157 opened this issue Dec 29, 2023 · 0 comments
Open

[bug][minor] Improper markdown highlighting in nested nodes #13

Varun0157 opened this issue Dec 29, 2023 · 0 comments

Comments

@Varun0157
Copy link

Varun0157 commented Dec 29, 2023

I am developing an extension that allows users to create and document API requests.

I noticed that on attempting to syntactically highlight markdown in nested nodes, a lot of the text (beyond the first line is what I've noticed) gets treated as regular text, regardless of whether it is a header, bullet point etc. The example will make it easier to understand.

Minimum reproducible example:

key:
  doc: | # markdown
    # header // highlighted
    content
    # header // not highlighted
    content

image

Another example:
image

  • The extension works correctly if the doc node is not nested.
  • In general, the issue seems to occur if the text block starts with any kind of header.
  • I have the RedHat YAML extension installed, but I doubt it is interfering because this does not work without it either.
  • The textmate scope of the second header in the minimum reproducible example does not denote it as a header.

For a larger example, you may try out your extension on this file.

VSCode version: 1.85.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant