-
-
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
Include default set of remark plugins #295
Comments
yep sounds good! |
Perhaps also ---
title: My Post
---
The title is {title} |
Thanks for the input!
I agree |
You could maybe make the default |
Ya I agree it's probably less necessary/useful to have |
I'm also inclined to believe it's the right approach to pick a default name ( |
- Volar handles the mapping between TypeScript and LSP. - Volar handles the mapping between TypeScript and Monaco editor. - Volar manages virtual files. - Volar imports TypeScript directly. As a result, the Monaco editor integration now requires `path` to be polyfilled. - It is no longer possible to pass compiler options in the Monaco editor integration. - This adds editor features for YAML based on `yaml-language-server`. This has been contributed upstream to Volar and is pending review. - Markdown features are now handled by `vscode-markdown-languageservice`. This will be contributed upstream to Volar soon. - Markdown definitions are broken due to a bug in Volar. - This adds `remark-frontmatter` with TOML and YAML support as well as `remark-gfm` by default unless specified otherwise in `tsconfig.json`. - The language server now requires `typescript.tsdk` to be passed via initialization options. - This adds support for debugging virtual documents using Volar labs. Closes #168 Closes #284 Closes #295 Closes #298 Closes #301
- Volar handles the mapping between TypeScript and LSP. - Volar handles the mapping between TypeScript and Monaco editor. - Volar manages virtual files. - Volar imports TypeScript directly. As a result, the Monaco editor integration now requires `path` to be polyfilled. - `@mdx-js/monaco` is deprecated and removed. - This adds `remark-frontmatter` with TOML and YAML support as well as `remark-gfm` by default unless specified otherwise in `tsconfig.json`. - The language server now requires `typescript.tsdk` to be passed via initialization options. - This adds support for debugging virtual documents using Volar labs. Closes #168 Closes #284 Closes #295 Closes #298 Closes #301 Co-authored-by: Christian Murphy <christian.murphy.42@gmail.com> Co-authored-by: Johnson Chu <johnsoncodehk@gmail.com>
Released in |
@remcohaszing I think |
Initial checklist
Problem
Currently remark plugins need to be specified explicitly in order to use them. However, many users might not configure the
mdx
section intsconfig.json
. They might not even usetsconfig.json
at all.Solution
Provide
remark-frontmatter
andremark-gfm
by default, unless plugins are explicitly specified.This behaviour is similar to TypeScript. By default the language service supports a large set of the builtin library and loose options, but as soon as the user configures TypeScript properly, this config takes over.
Alternatives
I think
remark-frontmatter
andremark-gfm
are the most commonly used, and provide nice defaults. The exact plugin list is up for discussion, or could even change over time.The text was updated successfully, but these errors were encountered: