Function: markdown-ts-table-delete-table

markdown-ts-table-delete-table is an interactive and byte-compiled function defined in markdown-ts-mode.el.gz.

Signature

(markdown-ts-table-delete-table)

Documentation

Remove the Markdown table at point.

If point is not at a table, do nothing.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode.el.gz
(defun markdown-ts-table-delete-table ()
  "Remove the Markdown table at point.
If point is not at a table, do nothing."
  (interactive)
  (markdown-ts--barf-if-not-mode 'markdown-ts-table-delete-table)
  (when-let* ((at-table (markdown-ts-at-table-p nil t))
              (table (cdr at-table)))
    ;; TODO: Remove after bug#23903 Undo after kb differs from after M-x
    (push (point) buffer-undo-list)
    (delete-region (treesit-node-start table) (treesit-node-end table))))