Release 2.4.0
New features
Better comment toggling for JSX
When inside a JSX context, normal JavaScript comments can't be used. Therefore {/* */}
comments will now be used in JSX contexts.(2e38fd2)
A new property on languages getComments
was used to make this possible. You can read about it in the API docs.
New commands
- Shift+Ctrl+K (Shift+Cmd+K on MacOS): Delete line (617da31)
- Ctrl+Enter (Cmd+Enter on MacOS) Insert blank line (7ee34a4)
Fixes
- Tag matching and block comment folding now works properly in nested languages (9bab6a3)
- The JS templates and markup templating Prism languages can no longer break tag matching, bracket matching and code folding