The code block formatting for JSX syntax doesn't work smoothly when you select javascript in the dropdown, i.e.
it doesn't do line breaks in a lot of places
it wrongly highlights closing HTML tags
Therefore, after copy/pasting JSX code into code blocks, it requires a fair amount of manual editing, and the code is not super readable (due to the highlighting of closing HTML tags).
Feature implementation
Implement JSX in the drop-down for code blocks.
Additional context
React is a very common JS library so it would benefit a lot of developers that are using Roam for their personal knowledge management.
Describe the problem
The code block formatting for JSX syntax doesn't work smoothly when you select
javascript
in the dropdown, i.e.Therefore, after copy/pasting JSX code into code blocks, it requires a fair amount of manual editing, and the code is not super readable (due to the highlighting of closing HTML tags).
Feature implementation
Implement JSX in the drop-down for code blocks.
Additional context
React is a very common JS library so it would benefit a lot of developers that are using Roam for their personal knowledge management.