Skip to content
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 mdx #104

Closed
remcohaszing opened this issue May 12, 2022 · 2 comments
Closed

Support mdx #104

remcohaszing opened this issue May 12, 2022 · 2 comments

Comments

@remcohaszing
Copy link
Contributor

I’m interested in support for MDX.

I’ve already created basic language support to Monaco Editor.

I fiddled a bit locally and tried adding the mdx key using same consifuration javascript in

const LANGUAGE_MODES: { [id: string]: string[] } = {
html: ['!', '.', '}', ':', '*', '$', ']', '/', '>', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],
jade: ['!', '.', '}', ':', '*', '$', ']', '/', '>', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],
slim: ['!', '.', '}', ':', '*', '$', ']', '/', '>', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],
haml: ['!', '.', '}', ':', '*', '$', ']', '/', '>', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],
xml: ['.', '}', '*', '$', ']', '/', '>', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],
xsl: ['!', '.', '}', '*', '$', '/', ']', '>', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],
css: [':', '!', '-', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],
scss: [':', '!', '-', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],
sass: [':', '!', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],
less: [':', '!', '-', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],
stylus: [':', '!', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],
javascript: ['!', '.', '}', '*', '$', ']', '/', '>', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],
typescript: ['!', '.', '}', '*', '$', ']', '/', '>', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],
}

But I couldn’t get it to work. Could you add it or help me troubleshoot this?

@troy351
Copy link
Owner

troy351 commented May 12, 2022

the key part is here, emmet only triggers when token valid.

@troy351
Copy link
Owner

troy351 commented Jun 11, 2024

Closing now since new version was released

@troy351 troy351 closed this as completed Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants