Function: markdown-table-blank-line

markdown-table-blank-line is a byte-compiled function defined in markdown-mode.el.

Signature

(markdown-table-blank-line S)

Documentation

Convert a table line S into a line with blank cells.

Source Code

;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown-table-blank-line (s)
  "Convert a table line S into a line with blank cells."
  (if (string-match "^[ \t]*|-" s)
      (setq s (mapconcat
               (lambda (x) (if (member x '(?| ?+)) "|" " "))
               s ""))
    (with-temp-buffer
      (insert s)
      (goto-char (point-min))
      (when (re-search-forward "|" nil t)
        (let ((cur (point))
              ret)
          (while (re-search-forward "|" nil t)
            (when (and (not (eql (char-before (match-beginning 0)) ?\\))
                       (not (markdown--thing-at-wiki-link (match-beginning 0))))
              (push (make-string (- (match-beginning 0) cur) ? ) ret)
              (setq cur (match-end 0))))
          (format "|%s|" (string-join (nreverse ret) "|")))))))