Support remark syntax plugins in @mdx-js/language-server
#266
Labels
🗄 area/interface
This affects the public interface
👋 phase/new
Post is being triaged automatically
🦋 type/enhancement
This is great to have
Initial checklist
Problem
The language service was written with support for remark/micromark syntax plugins in mind, but not the language server. We need to think of a way for users to define which remark plugins to use.
Solution
The language server uses TypeScript, which loads
tsconfig.json
. We could extendtsconfig.json
with anmdx
property. For examplets-node
does this too.We can then use
load-plugin
to load the plugins.Alternatives
We could also use LSP workspace configuration.
Alternatively we could investigate a more common MDX configuration file and look into creating an MDX CLI. I.e.
remark-cli
doesn’t support MDX out of the box. (unifiedjs/unified-engine#56)The text was updated successfully, but these errors were encountered: