This project contains a Markdown renderer capable of identifying code blocks in a file and execute them, capturing the output and displaying it next to the code that was executed.
- Extend a basic markdown renderer (eg. showdown)
- Provide a plug-in for handling code blocks that does the following:
- Captures the code of a given block
- Does the required plumbing for capturing the console output
- Passes the captured code to the TypeScript compiler (if the code is TypeScript)
- Execute the captured code (JS) or compiled code (output from the compilation step, if TS)
- Renders the output of the execution next to the code block
- Requires NodeJS
- Install the packages with
npm install
- Start the web server with
npm run serve
, open the page at http://127.0.0.1:8080/index.html