feat: add javascript code block support (#13)

This commit is contained in:
Morten Olsen
2025-05-19 10:25:53 +02:00
parent bf14ef97b8
commit c7b9abf868
7 changed files with 186 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ const codeHandler: ExecutionHandler = ({
node,
addStep,
}) => {
if (node.type !== 'code' || node.lang === 'http') {
if (node.type !== 'code' || node.lang === 'http' || node.lang === 'javascript') {
return;
}
const optionParts = node.meta?.split(',') || [];