Variable: markdown-ts-converters
markdown-ts-converters is a variable defined in
markdown-ts-mode-x.el.gz.
Value
Large value
((html
(pandoc :command "pandoc" :input (file stdin) :output (file)
:arguments-function
#[514
"\300\301\302\303\304\305\306\257\205C\"\207"
[append "-f" "gfm" "-t" "html5" "--standalone" "-o"] 10
("/nix/store/4sqc1yyx22dax8qs94hnxkgyg1v6gqfn-emacs-snapshot/share/emacs/32.0.50/lisp/textmodes/markdown-ts-mode-x.elc"
. 3148)])
(cmark :command "cmark" :input (file stdin) :output (stdout)
:arguments-function
#[514 "\300\301\205C\"\207" [append ("-t" "html")] 5
("/nix/store/4sqc1yyx22dax8qs94hnxkgyg1v6gqfn-emacs-snapshot/share/emacs/32.0.50/lisp/textmodes/markdown-ts-mode-x.elc"
. 3148)])
(cmark-gfm :command "cmark-gfm" :input (file stdin) :output (stdout)
:arguments-function
#[514 "\300\301\205C\"\207"
[append
("-t" "html" "--github-pre-lang"
"--full-info-string"
"--table-prefer-style-attributes" "--extension"
"footnotes" "--extension" "table" "--extension"
"strikethrough" "--extension" "autolink"
"--extension" "tagfilter" "--extension"
"tasklist")]
5
("/nix/store/4sqc1yyx22dax8qs94hnxkgyg1v6gqfn-emacs-snapshot/share/emacs/32.0.50/lisp/textmodes/markdown-ts-mode-x.elc"
. 3148)])
(markdown.pl :command "markdown.pl" :input (file stdin) :output
(stdout) :arguments-function
#[514 "\300\205\301DB\207" ["--html4tags" "--"]
5
("/nix/store/4sqc1yyx22dax8qs94hnxkgyg1v6gqfn-emacs-snapshot/share/emacs/32.0.50/lisp/textmodes/markdown-ts-mode-x.elc"
. 3148)])
(markdown :command "markdown" :input (file stdin) :output (stdout)
:arguments-function
#[514 "\300\205\301DB\207" ["--html4tags" "--"] 5
("/nix/store/4sqc1yyx22dax8qs94hnxkgyg1v6gqfn-emacs-snapshot/share/emacs/32.0.50/lisp/textmodes/markdown-ts-mode-x.elc"
. 3148)]))
(pdf
(pandoc :command "pandoc" :input (file stdin) :output (file)
:arguments-function
#[514
"\300\301\302\303\304\305\257\205C\"\207"
[append "-f" "gfm" "-t" "pdf" "-o"] 9
("/nix/store/4sqc1yyx22dax8qs94hnxkgyg1v6gqfn-emacs-snapshot/share/emacs/32.0.50/lisp/textmodes/markdown-ts-mode-x.elc"
. 3148)])))
Documentation
An alist of format/converter configurations.
It is a two level alist with the first level being format, for example
html or pdf, and the second being the converter name, for example
pandoc. A converter configuration entry is a plist of the form:
'(:command "command name"
:input (file stdin) ; accepts file name or stdin
:output (stdout) ; produces stdout only
:arguments-function ; function; e.g.,
(lambda (input-file _output-file)
(append (list "-t" "html")
(when input-file
(list input-file)))))
arguments-function is passed two arguments, INPUT-FILE and
OUTPUT-FILE. If INPUT-FILE is nil, assume stdin, or it is a
fully-qualified file name. If OUTPUT-FILE is nil, assume stdout, or it
is a fully-qualified file name. It should return a list of
arguments suitable for call-process.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode-x.el.gz
(defvar markdown-ts-converters
(list
(cons 'html
(list
(cons 'pandoc
(list :command "pandoc"
:input '(file stdin)
:output '(file)
:arguments-function
(lambda (input-file output-file)
(append (list "-f" "gfm"
"-t" "html5"
"--standalone"
"-o" output-file)
(when input-file
(list input-file))))))
(cons 'cmark
(list :command "cmark"
:input '(file stdin)
:output '(stdout)
:arguments-function
(lambda (input-file _output-file)
(append (list "-t" "html")
(when input-file
(list input-file))))))
(cons 'cmark-gfm
(list :command "cmark-gfm"
:input '(file stdin)
:output '(stdout)
:arguments-function
(lambda (input-file _output-file)
(append (list "-t" "html"
;; Use GitHub-style <pre lang> for code blocks
"--github-pre-lang"
;; Include remainder of code block info
;; string in a separate attribute.
"--full-info-string"
;; Use style attributes to align table
;; cells instead of align attributes.
"--table-prefer-style-attributes"
"--extension" "footnotes"
"--extension" "table"
"--extension" "strikethrough"
"--extension" "autolink"
"--extension" "tagfilter"
"--extension" "tasklist")
(when input-file
(list input-file))))))
;; 'markdown.pl is the same as 'markdown with another common file
;; name.
(cons 'markdown.pl
(list :command "markdown.pl"
:input '(file stdin)
:output '(stdout)
:arguments-function
(lambda (input-file _output-file)
(append (list "--html4tags")
(when input-file
(list "--" input-file))))))
;; 'markdown is the same as 'markdown.pl with another common file
;; name.
(cons 'markdown
(list :command "markdown"
:input '(file stdin)
:output '(stdout)
:arguments-function
(lambda (input-file _output-file)
(append (list "--html4tags")
(when input-file
(list "--" input-file))))))))
(cons 'pdf
(list
(cons 'pandoc
(list :command "pandoc"
:input '(file stdin)
:output '(file)
:arguments-function
(lambda (input-file output-file)
(append (list "-f" "gfm"
"-t" "pdf"
"-o" output-file)
(when input-file
(list input-file)))))))))
"An alist of format/converter configurations.
It is a two level alist with the first level being format, for example
`html' or `pdf', and the second being the converter name, for example
`pandoc'. A converter configuration entry is a plist of the form:
\\='(:command \"command name\"
:input (file stdin) ; accepts file name or stdin
:output (stdout) ; produces stdout only
:arguments-function ; function; e.g.,
(lambda (input-file _output-file)
(append (list \"-t\" \"html\")
(when input-file
(list input-file)))))
`arguments-function' is passed two arguments, INPUT-FILE and
OUTPUT-FILE. If INPUT-FILE is nil, assume stdin, or it is a
fully-qualified file name. If OUTPUT-FILE is nil, assume stdout, or it
is a fully-qualified file name. It should return a list of
arguments suitable for `call-process'.")