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

remove pandoc.py:109 cmd.extend(['-f', iformat]) line #53

Closed cpkio closed 4 years ago

cpkio commented 7 years ago

pandoc.py:109 cmd.extend(['-f', iformat]) should be removed or optioned, since output options should be in .settings file, not in code. Now this cmd.extend(['-f', iformat]) results in -f markdown in my command line, where I want to set the -f params manually.

robinrosenstock commented 7 years ago

I think you can already set the -f parameter manually by changing the settings "scope" in the settings file. So, for example change the "html" to whatever you like:

"scope": {
    "text.html": "html"
},

It works for me, when appending it with Non-pandoc extensions. At least the pandoc command from the console output is correct.