Closed SaadBazaz closed 1 week ago
This comment syntax is invalid in JSX, you need to use something like:
<>
{/* [!code highlight] */}
</>
Doesn't look consistent
Okay update here, I've realized it's possible by just adding the comment in the line above the line you want highlighted. The only catch is that it has to be the only content in that line. Which works for me.
To Reproduce
tsx
codeblock in an .mdx pageCurrent vs. Expected behavior
Current
The
// [!code ++]
renders as-is:Expected
According to the documentation, this should have rendered that particular line as an insert diff.
Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure
Additional context
No response