Function: markdown-ts-table-convert-tsv-region

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

Signature

(markdown-ts-table-convert-tsv-region BEG END &optional HEADER-LINE REPLACE)

Documentation

Convert the tab-separated region BEG to END to a Markdown table.

If HEADER-LINE is non-nil, use the first line of the region as the table column header. If nil, infer the number of columns and synthesize column names from the first line.

Note: Body columns beyond the provided or inferred number of columns are dropped.

If REPLACE is non-nil, overwrite the region BEG END with the Markdown table, otherwise insert the table after END.

With a single prefix argument, HEADER-LINE is non-nil. With a double prefix argument, REPLACE is non-nil. With a triple prefix argument, both are non-nil.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode.el.gz
(defun markdown-ts-table-convert-tsv-region ( beg end
                                              &optional
                                              header-line replace)
  "Convert the tab-separated region BEG to END to a Markdown table.
If HEADER-LINE is non-nil, use the first line of the region as the table
column header.  If nil, infer the number of columns and synthesize
column names from the first line.

Note: Body columns beyond the provided or inferred number of columns are
dropped.

If REPLACE is non-nil, overwrite the region BEG END with the Markdown
table, otherwise insert the table after END.

With a single prefix argument, HEADER-LINE is non-nil.
With a double prefix argument, REPLACE is non-nil.
With a triple prefix argument, both are non-nil."
  (interactive "R")
  (markdown-ts-table-convert-region beg end header-line replace 'tsv))