Function: markdown-ts-convert-file

markdown-ts-convert-file is an autoloaded, interactive and byte-compiled function defined in markdown-ts-mode-x.el.gz.

Signature

(markdown-ts-convert-file INPUT-FILE &optional FORMAT OUTPUT-FILE DISPLAY OVERWRITE QUIET)

Documentation

Convert Markdown INPUT-FILE to FORMAT.

If optional DISPLAY is non-nil, show the output file in a buffer, if possible, using the function markdown-ts-convert-display-function.

With a prefix argument, DISPLAY will be non-nil.

Optional FORMAT is a format/converter pair specified as a cons
'(format . converter) for example '(html . pandoc). See
markdown-ts-converters. If nil, prompt for the format and converter.

If optional OVERWRITE is non-nil, silently overwrite OUTPUT-FILE if it exists.

If QUIET is non-nil, inhibit showing conversion warnings or errors.

The external executable specified by a converter must be installed and found; see the variable exec-path(var)/exec-path(fun).

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode-x.el.gz
;;;###autoload
(defun markdown-ts-convert-file (input-file
                                 &optional
                                 format
                                 output-file
                                 display overwrite quiet)
  "Convert Markdown INPUT-FILE to FORMAT.
If optional DISPLAY is non-nil, show the output file in a buffer, if
possible, using the function `markdown-ts-convert-display-function'.

With a prefix argument, DISPLAY will be non-nil.

Optional FORMAT is a format/converter pair specified as a cons
\\='(format . converter) for example \\='(html . pandoc).  See
`markdown-ts-converters'.  If nil, prompt for the format and converter.

If optional OVERWRITE is non-nil, silently overwrite OUTPUT-FILE if it
exists.

If QUIET is non-nil, inhibit showing conversion warnings or errors.

The external executable specified by a converter must be installed and
found; see the variable `exec-path'."
  (interactive "fConvert Markdown file: ")
  (markdown-ts-convert input-file output-file
                       format
                       (or display current-prefix-arg)
                       overwrite
                       quiet))