Function: markdown-table-insert-column
markdown-table-insert-column is an interactive and byte-compiled
function defined in markdown-mode.el.
Signature
(markdown-table-insert-column)
Documentation
Insert a new table column.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-table-insert-column ()
"Insert a new table column."
(interactive)
(unless (markdown-table-at-point-p)
(user-error "Not at a table"))
(let* ((col (max 1 (markdown-table-get-column)))
(begin (markdown-table-begin))
(end (copy-marker (markdown-table-end))))
(markdown-table-save-cell
(goto-char begin)
(while (< (point) end)
(markdown-table-goto-column col t)
(if (markdown-table-hline-at-point-p)
(insert "|---")
(insert "| "))
(forward-line)))
(set-marker end nil)
(when markdown-table-align-p
(markdown-table-align))))