-
-
Notifications
You must be signed in to change notification settings - Fork 21
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 remark plugins in the language server #272
Conversation
Syntax plugins can be added by adding an `mdx` section in your `tsconfig.json` file. This is then parsed following the same format as `unified-engine` [configuration][]. For example, to support [frontmatter][] and [GFM][], add the following section to `tsconfig.json`: ```jsonc { "compilerOptions": { // … }, "mdx": { "plugins": [ "remark-frontmatter", "remark-gfm" ] } } ``` This also adds the JSON schema for the new field in `tsconfig.json`.
🦋 Changeset detectedLatest commit: dc02704 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- should probably be documented. Saying where things are loaded from, and that it explicitly only should be syntax plugins, not thing like
remark-toc
or rehype/recma plugins
Good catch! Definitely need to add documentation for this. Do we have a nice overview of syntax plugins? Maybe we can make a distinction in https://github.com/remarkjs/remark/blob/main/doc/plugins.md? You and I know what this means, but users might not. |
nope, don’t think there is such a distinction. Also, I think there are plugins that do both. So maybe this distinction doesn’t even exist |
Co-authored-by: Titus <tituswormer@gmail.com> Signed-off-by: Remco Haszing <remcohaszing@gmail.com>
This has been released in v1.2.0 🎉 |
Syntax plugins can be added by adding an
mdx
section in yourtsconfig.json
file. This is then parsed following the same format asunified-engine
[configuration][].For example, to support [frontmatter][] and [GFM][], add the following section to
tsconfig.json
:This also adds the JSON schema for the new field in
tsconfig.json
.Closes #266