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

YAML parsing on VS Code #437

Open
sam-cp opened this issue Oct 17, 2024 · 0 comments
Open

YAML parsing on VS Code #437

sam-cp opened this issue Oct 17, 2024 · 0 comments

Comments

@sam-cp
Copy link

sam-cp commented Oct 17, 2024

I've been using the Argdown extension on VS Code, and it's generally working fine. However, if I try to add YAML data, especially frontmatter, to an Argdown file, problems arise. If I add any YAML data to a statement, or if I have more than one line of frontmatter, the tokenizer seems to think the entire document after the YAML data is also YAML. This causes the rest of the document to be incorrectly syntax-highlighted. It's not a functionality problem, and I can get around it if I don't include any YAML data, but it's nice to include more than one line of frontmatter without the rest of the document's coloring being thrown off.

I've included a picture of the syntax coloring and the debug view of the scope, showing that the rest of the Argdown is being interpreted as YAML. I'm using VS Code 1.94.2.
ArgdownYAMLIssue

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