Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.53 KB

pandoc.org

File metadata and controls

36 lines (25 loc) · 1.53 KB

run-command’s Recipe for Pandoc

Table of Contents

Commands

This cool recipe has only one thing:

  • convert SOMETHING to ANYTHING

but its will expanded to more commands has more then one command.

What’s it Work? (required when you need to customization)

What’s it Work and how extend it?

  1. 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
  2. For each of run-command-recipes-pandoc-output-formats (see it), create run-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

Customization

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