Also support type=text/babel for <script> tags. #4

Merged
bmeurer merged 1 commit from text/babel into main 2022-11-23 13:55:43 +01:00
bmeurer commented 2022-11-23 13:21:32 +01:00 (Migrated from github.com)

Both the official React documentation1 as well as the official Babel documentation2 still mention type=text/babel as an alternative to type=text/jsx, so it makes sense for us to support as well for the purpose of syntax highlighting.

Both the official React documentation[^1] as well as the official Babel documentation[^2] still mention `type=text/babel` as an alternative to `type=text/jsx`, so it makes sense for us to support as well for the purpose of syntax highlighting. [^1]: https://reactjs.org/docs/add-react-to-a-website.html#quickly-try-jsx [^2]: https://babeljs.io/docs/en/babel-standalone#script-tags
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/lang-html!4
No description provided.