This cool recipe has only one thing:
- convert
SOMETHING
toANYTHING
but its will expanded to more commands has more then one command.
What’s it Work and how extend it?
- When call
run-command-recipe-pandoc
, if the buffer opened in one of this major modes, find input the pandoc format for current major mode - For each of
run-command-recipes-pandoc-output-formats
(see it), createrun-command
recipe with command:
pandoc -o foo.md -f org -t markdown foo.org # here foo.org is buffer in which run run-command, and current mode is org-mode # and markdown is output format
Extension for output file take from here
So if you need to special pandoc’s output format see this, if you need to support of any major mode, then see this, if you need to special extension of file for pandoc’s format visit this