Pandoc (Markdown)
Sublime Text 2 Plugin for the Pandoc Markdown Renderer
Details
Installs
- Total 6K
- Win 2K
- Mac 2K
- Linux 1K
Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Pandoc Plugin for Sublime Text 2
A Sublime Text 2 plugin for calling the Pandoc Markdown renderer to create HTML and DocX output. Pandoc does a LOT more than this but this is the specific functionality I use.
Installation
The easiest way is to install “SublimePandoc” using Package Control.
You can also grab the latest from Github and install it into your Sublime Text 2 Packages folder.
$ git clone git://github.com/jclement/SublimePandoc.git
Dependencies
You'll need to download and install Pandoc and have it in your PATH.
Available Commands
pandoc_render will render the markdown to HTML or DOCx and takes the following optional arguments:
- writeBeside - When set will output the rendered result in the same folder, and with the same name as the source file. This requires that the buffer has already been saved and has a filename. Defaults to FALSE.
- openAfter - When set will open the resulting document after rendering it. Defaults to FALSE.
- target - Can be either 'html' or 'docx'. Defaults to 'html'.
- additionalArguments - A list of additional arguments to pass to Pandoc.
Menu items for common tasks should show up under Tools > Pandoc.
Output Hints
The following hints can be added in your document to flip on additional features in Pandoc. (Note: these hints are processed by the plugin and NOT part of Pandoc itself)
\: Add a Table of Contents to the top of your output document.
\: Turn on numbering of sections.
Templates
“template.html” controls the output of the HTML documents and “reference.docx” is used for style definitions for DOCX output.
Note: If you are using a pre-built binary of Pandoc you will be unable to customize the reference.docx using Microsoft Word in versions <= 1.9.1
Sample Keybindings
The default keymapping on Windows…
[
{ "keys": ["ctrl+alt+r"],
"command":"pandoc_render",
"args":{"openAfter":true, "target":"html", "writeBeside":false},
"context":[{"key": "selector", "operator": "equal", "operand": "text.html.markdown" }]},
{ "keys": ["ctrl+alt+shift+d"],
"command":"pandoc_render",
"args":{"openAfter":true, "target":"docx", "writeBeside":true},
"context":[{"key": "selector", "operator": "equal", "operand": "text.html.markdown" }]},
{ "keys": ["ctrl+alt+shift+r"],
"command":"pandoc_render",
"args":{"openAfter":false, "target":"html", "writeBeside":true},
"context":[{"key": "selector", "operator": "equal", "operand": "text.html.markdown" }]}
]