Execute code blocks in Markdown documents using the md-babel CLI tool.
- Execute code blocks at the cursor position in Markdown files.
- View execution results directly in the document.
- Place cursor in a code block within a Markdown document.
- Press Cmd+Enter (Mac) or Ctrl+Enter (Windows/Linux) to execute the block.
- The output will replace the code block's content.
md-babelexecutable must be installed separately. Get it here: https://github.com/md-babel/swift-markdown-babel- Configure the path to the executable in extension settings.
mdBabel.executablePath: Path to the md-babel executable.
After installing the extension, set the path to your md-babel executable:
- Open VS Code settings (Code → Preferences → Settings)
- Search for "mdBabel"
- Enter the full path to your md-babel executable