Function: markdown--table-line-to-columns
markdown--table-line-to-columns is a natively compiled function
defined in markdown-mode.el.
Signature
(markdown--table-line-to-columns LINE)
Source Code
;; Defined in /nix/store/p33zgg95aglc47pl6zlgs43vki0snxf8-emacs-packages-deps/share/emacs/site-lisp/elpa/markdown-mode-20260827.909/markdown-mode.el
(defun markdown--table-line-to-columns (line)
(with-temp-buffer
(insert line)
(goto-char (point-min))
(let ((cur (point))
ret)
(while (and (re-search-forward "\\s-*\\(|\\)\\s-*" nil t))
(when (not (markdown--face-p (match-beginning 1) '(markdown-inline-code-face)))
(if (markdown--first-column-p (match-beginning 1))
(setq cur (match-end 0))
(cond ((eql (char-before (match-beginning 1)) ?\\)
;; keep spaces
(goto-char (match-end 1)))
((markdown--thing-at-wiki-link (match-beginning 1))) ;; do nothing
(t
(push (buffer-substring-no-properties cur (match-beginning 0)) ret)
(setq cur (match-end 0)))))))
(when (< cur (length line))
(push (buffer-substring-no-properties cur (point-max)) ret))
(nreverse ret))))