Thanks for putting this together!
You'll need to escape embedded expressions within code blocks.
ex: ${} becomes \${}
Example:
\`\`\`javascript
async function main() {
try {
// your code here
} catch (error) {
console.error(\`Error: \${error.message}\`);
throw error; // Re-throw to ensure error is captured by the system
}
}
main();
\`\`\`