sublime-text-plugin: JSX support breaks in v2.1.4
After adding:
{
"keys": ["ctrl+e"],
"command": "emmet_expand_abbreviation"
}
- Emmet doesn’t expand JSX if it’s not written w/
JSX
document syntax - undesirable, because syntax highlighters for JSX syntax aren’t feature-rich, whereas others are (Javascript, Typescript) so it should support them all. - Emmet expands h1.name to
<h1 class="name"></h1>
inside JSX - undesirable because it’s still behaving like HTML expansions.
Would be awesome if somehow reverting to older version works or maybe a newer update is published with older code (since too many people will face issues with so many things breaking).
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 28 (13 by maintainers)
If you don’t want to use native ST snippets in JSX, you can mimic old behaviour
@asumaran you should prefix JSX abbreviations with
<
: https://github.com/emmetio/sublime-text-plugin#jsx-supportAnd you should remove this keybinding, it’s no longer valid
Added
jsx_prefix
Emmet setting to enable/disable JSX prefixes in v2.2.2@sergeche It suddenly works now today. I haven’t updated Emmet v2.1.7 today and yet typing
h1.name
and expanding works with and without prefix and withJavascript
andJavascript (Babel)
syntax definitions.