tbfisher / sublimetext-Pandoc

A Sublime Text plugin that uses Pandoc to convert text from one markup format into another. Pandoc can convert documents in markdown, reStructuredText, textile, HTML, DocBook, LaTeX, MediaWiki markup, OPML, or Haddock markup to XHTML, HTML5, HTML slide shows using Slidy, reveal.js, Slideous, S5, or DZSlides, Microsoft Word docx, OpenOffice/LibreOffice ODT, OpenDocument XML, EPUB version 2 or 3, FictionBook2, DocBook, GNU TexInfo, Groff man pages, Haddock markup, OPML, LaTeX, ConTeXt, LaTeX Beamer slides, PDF via LaTeX, Markdown, reStructuredText, AsciiDoc, MediaWiki markup, Emacs Org-Mode, Textile, or custom writers can be written in lua.
MIT License
137 stars 26 forks source link

Added build system #58

Closed robinrosenstock closed 6 years ago

robinrosenstock commented 7 years ago

Added build system with the new BuildPandocCommand and a pandoc.sublime-build file. The pandoc.sublime-build file specifies the markdown fomat as the scope with "selector": "text.html.markdown". With Build System on Automatic and with ctrl+b as the standard keybinding it will run the new BuildPandocCommand with "target": "build_pandoc". The output format can be specified with the variable "transformation". In this example configuration ctrl+b will parse from Markdown to Html and the run variant with ctrl+shift+b will generate a pdf. Missing: For other scopes one must make an individual pandoc.sublime-build file for example pandoc-html.sublime-build and setting an other selector.

robinrosenstock commented 6 years ago

I'll close this, because its now in my own sublime plugin: Spandoc