Code Runner

Checkout this page on https://ayroblu.github.io/md-runner

This runs code blocks and outputs code blocks that contain the output of the run.

For example with JavaScript I can do the following:

const hi = "hi"
console.log(hi)
const hi = "hi"
console.log(hi)
hi
hi

and variables are kept in scope so I can then follow it up with a following code block like:

const there = 'there'
console.log(`${hi} ${there}`)
const there = 'there'
console.log(`${hi} ${there}`)
hi there
hi there
// And I can skip some code blocks by adding an "ignore" to the code block attributes
throw new Error('skip me');
// And I can skip some code blocks by adding an "ignore" to the code block attributes
throw new Error('skip me');

Usage

This README.md is updated by running yarn start md -w README.md

Example with stateful shell and detail summary

pwd
pwd
/Users/runner/work/md-runner/md-runner
/Users/runner/work/md-runner/md-runner
Hidden - cd to another directory
cd ..
cd ..
pwd
pwd
/Users/runner/work/md-runner
/Users/runner/work/md-runner

Supported languages

TODO