You can write jsx in mdx.
code: {new Date().toString()} result: Tue Nov 03 2026 18:45:08 GMT+0000 (Coordinated Universal Time)
{new Date().toString()}