This release contains a few big improvements (mainly aria support and better
JS formatting) implemented by contributors. Thank you very much for the
support!
It took me a while to get back to SuperHTML and merge this work, sorry all
for the wait. Also for the PRs that remain open, sit tight, I'll get to them soon.
Changes:
- Added support for
[role]and[aria-*]attributes (thanks bitterlox!) which
includes also autocomplete support for the language server. - Greatly improved JS formatting: JS code has now a proper tokenizer that
avoids the previous issues with formatting code that makes non-trivial
use of curly braces (thanks Jeffrey Crochet!). - Relaxed rules for
<iframe [allow]>: apparently nobody on the internet
respects the grammar for values of this attribute (eg. when you copy
embed code from youtube, it gives you completely wrong code), and since
that grammar is a spec external to the HTML spec, I've made checking more
lenient because it would otherwise be too hard for users to figure out
the right syntax. - Fix
<svg>,<math>,<ins>,<del>categorization (previously you
would get false positive nesting errors). - Fixed incorrect analysis of comments inside of
<details>elements which
could cause false positive errors for a<summary>child. - Fixed some minor bugs relative to the obsolete
<script>double escape
state. This should have no impact on anybody as it's a legacy feature. - Fixed a rendering bug where formatting a file multiple times in a row
could cause it to end up with 2 newlines at the bottom (instead of 1).