Like org-babel but for Markdown and Neovim
Find a file
2024-04-06 15:23:46 +03:00
doc Initial commit 2024-04-04 22:07:43 +03:00
lua Add handler for lua async blocks 2024-04-06 15:23:46 +03:00
README.md Initial commit 2024-04-04 22:07:43 +03:00
stylua.toml Initial commit 2024-04-04 22:07:43 +03:00

md-babel.nvim

Like org-babel but for Markdown and Neovim.

Usage

local md = require "md-babel"

-- Run all code chunks from markdown file.
md.dofile(vim.fn.stdpath "config" .. "/config.md")
local md = require "md-babel"

-- Teach md-babel how to "run" Rust chunks.
md.register_handler("rust", function(chunk)
  error("Oops! Cannot hadle the following chunk cuz it's in Rust!\n" .. chunk)
end)