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

Support frontmatter #296

Closed
4 tasks done
adueck opened this issue Feb 4, 2023 · 2 comments
Closed
4 tasks done

Support frontmatter #296

adueck opened this issue Feb 4, 2023 · 2 comments

Comments

@adueck
Copy link

adueck commented Feb 4, 2023

Initial checklist

First of all thank you @remcohaszing so much for all your work on the language server. This morning I went out on a limb and searched to see if there was any work being done for TypeScript intellisense with mdx. I was so delighted to see you work on this. Thank you!

Problem

Adding frontmatter to an .mdx file

---
title: Hi, World!
---

# Hi, World!

throws the following extension error:

Request textDocument/foldingRange failed.

This keeps popping up while typing in VSCode.

Solution

It would be great if mdx frontmatter would be allowed, because it is a super common part of the markdown/mdx workflow.

I assume this would be taken care of with #295.

Alternatives

Not sure.

@ChristianMurphy
Copy link
Member

ChristianMurphy commented Feb 4, 2023

@adueck have you tried version 1.2.0 or newer?
Syntax plugin are already supported from the remark/ts configuration. #272

@adueck
Copy link
Author

adueck commented Feb 4, 2023

@ChristianMurphy Oh yes, sorry I should have read that in the documentation first. It workse!

@adueck adueck closed this as completed Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants