-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
📝 Editor support #119
Comments
Should editors add MDX highlighting for |
|
I can take a crack at it for VSCode. Is there a |
@Flaque not atm, but I guess you can copy the |
Sounds good, that’s my plan! |
I agree with @timneutkens, |
Added an item for |
Any updates on this ? I can work on vscode too @Flaque |
I would love Prettier support for MDX. Not sure what's involved, but glad to help if I can. I'm thinking there would be a |
@wilomgfx take a shot at it, I got caught up in other things and likely won't finish it sorry 😅 |
@Flaque did you have anything good already done that i can start from or im better off starting from scratch :)? |
Most of it was on a computer that bombed, which is kind of how I stopped working on it and then got distracted by other stuff. Sorry 😅
On Jun 23, 2018, 9:59 AM -0700, William Cantin <[email protected]>, wrote:
@Flaque<https://github.com/Flaque> did you have anything good already done that i can start from or im better off starting from scratch :)?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#119 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AFqt8VJggIrZg-CRGRSfosxcRCIKptlGks5t_nP7gaJpZM4Ttiuu>.
|
Anyone good at Vim plugins? 😄 |
I've literally never tried to write a Vim syntax before, but threw this together for my own use. If anyone wants to help out, that'd be great https://github.com/jxnblk/vim-mdx-js – cc @flipxfx |
I just published vscode-mdx! |
I've opened an issue for prettier support on the prettier repository: prettier/prettier#4960 |
this works great https://github.com/jxnblk/ok-mdx would be cool to have an online version of it |
@jxnblk nice work on the vim plugin! Perhaps you could get it included in vim-polyglot as the mdx language pack? UPDATE: requested in sheerun/vim-polyglot#342. |
Spacemacs user here! My elisp is practically non-existing, but it'd be cool to add Emacs to the initial todo list in case someone comes along with the chops to work on it :) |
For emacs markdown-mode is probably the place to start, but it's already pretty OK from my perspective (despite not having "real support" for mdx). Biggest missing pieces are all the niceties that markdown-mode provides for inserting different elements. Indirect editing support for JSX blocks would be nice too (like the indirect editing support already available to code blocks) and seems mostly like a matter of propertizing jsx/import/export blocks. |
I put something together for Sublime Text 3 support: https://github.com/jonsuh/mdx-sublime I submitted a PR wbond/package_control_channel#7312 to get it on Package Control. It isn’t perfect, but it’s better than no syntax highlighting at all. I’ve never written language syntax before, so could use and would appreciate any help to improve it! |
@jonsuh great! ⭐️ It was my first time with VS Code as well, grammars are complicated and feel inherently hacky. 😅 |
Any updates on intellij/webstorm support? :( |
I took a stab at this for atom, using @silvenon 's vscode repo as a base, it seems to be working okay but I can't get the end pattern to match properly. If you add a JSX, the content after that tag is closed also has the scope for JSX, instead of the markdown scope. Anyone know what's wrong here?
|
Based on the completed plugins from #119
I really want support of MDX in my Intellij Idea Ultimate please :) |
@landsman well that's the good thing about source. Do it 💪 |
+1 for JetBrains IntelliJ/WebStorm support |
Please don't post any more "+1" comments, that is what emoji reactions are for. I understand that this is a highly requested plugin, but AFAIK nobody volunteered yet. As far as I see you'd have to know Java for this, which is not a common skill among people using MDX. |
I took a stab at an MDX grammar for Atom: https://github.com/BCDH/language-mdxjs |
|
@ttasovac awesome! ❤️ I added it to the list ✅ |
Not sure if you view this as "full support" but the following is from the JetBrains issue thread and details how to get syntax highlighting in WebStorm. There's no autocomplete as far as I can tell, but correct me if I'm wrong, there isn't any either in vs-code. Either way this works as described. https://youtrack.jetbrains.com/issue/WEB-32599#focus=streamItem-27-3699900.0-0 TL;DR
|
@bitwhys cool! I updated the list. |
The TextMateBundles “work around” for JetBrains doesn’t work for me 😫. Any ideas anyone? UPDATE
|
Yes, the |
@trevordmiller this is how it looks on my neovim, am I doing something wrong?
|
Is there an editor for MDX with live preview, similar to StackEdit? I couldn't find one among all the Electron apps. |
There is an IntelliJ plugin for MDX since August 2020: https://plugins.jetbrains.com/plugin/14944-mdx/versions |
Thanks! Updated the list ✅ |
going to close this issue, thanks y’all for your work! Please open new issues/prs if you want to add an editor integration! |
Wait, so nobody cares about this? |
There's no actual language mode for mdx files yet: mdx-js/mdx#119
There's no actual language mode for mdx files yet: mdx-js/mdx#119
There's no actual language mode for mdx files yet: mdx-js/mdx#119
There's no actual language mode for mdx files yet: mdx-js/mdx#119
Is there any library for MDX language support for ACE editor or Codemirror? |
MDX editor support is provided using Volar. To add MDX language support for a web editor, means to add support for Volar.
|
For tracking which editors support MDX.
The text was updated successfully, but these errors were encountered: