A Neovim plugin for aligning Markdown tables.
- Aligns columns to uniform width
- Respects alignment directives from separator rows
- Ensures minimum 1 space between pipes and content
- Pure Lua, with no external dependencies.
Use your favorite package manager.
:MdTableAlignAligns the Markdown table containing the cursor. The plugin only aligns on command execution - it does not auto-align.
vim.keymap.set("n", "<leader>t", function()
require("md-table-align").align_table()
end, { desc = "Align a markdown table" })