Run code from various languages directly within your markdown. It has built-in runners for Python, JavaScript/Node, Ruby, Shell, and more, and you can easily define custom commands for any language (e.g., use python3.11 instead of python).
Code blocks of the same language share a single runtime session, allowing variables and state to persist from one block to the next. This works for both full code fences and short, inline code snippets for dynamic text.
For a seamless workflow, it includes a file watching mode to automatically reprocess your document on change and post-processing hooks to run any command (like a static site generator or pandoc) after a successful run. It also works with stdin and stdout for easy integration into Unix pipelines.
Comments URL: https://news.ycombinator.com/item?id=45563646
Points: 1
# Comments: 0
Source: github.com