Code block comment rendering style

Description of the bug
When I am editing a code block with a comment inlined, it gets greyed out like comments typically should. On save however, they appear in the same font style as regular code. Is this a bug?

Screenshot 2023-10-09 at 10.11.31 PM

Screenshot 2023-10-09 at 10.11.48 PM

App & Version
e.g. MacOS M1 App v3.0.4

Hi @fuzzy.beach,

Good spot, we will look into why the rendered code blocks aren’t recognising inline comments.

1 Like

This is actually because the code in question is JSX, not pure Javascript. You’ll need to specify jsx in the code block header for it to highlight properly when rendered.