mdx-js / mdx-analyzer

MDX extension for Visual Studio Code

Home Page:https://marketplace.visualstudio.com/items?itemName=unifiedjs.vscode-mdx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support frontmatter

adueck opened this issue · comments

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.

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

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