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

rst to pdf only st2 ,not st3 ? #61

Open midui opened 7 years ago

midui commented 7 years ago

I get the following error when trying to Render rst to pdf. I have already configured the tool and my pandoc path is :

"pandoc-path": "C:/Users/P70/AppData/Local/Pandoc/pandoc.exe"

"PDF": {
        "scope": {
          "text.html": "html",
          "text.html.markdown": "markdown"
        },
        "pandoc-arguments": [
          "-t", "pdf",
          "--latex-engine=xelatex",
         "--template=pm-template.latex"
        ]
      },

Fail to generate output. _

error: No transformations configured for the syntax Packages/RestructuredText/reStructuredText.sublime-syntax Traceback (most recent call last): File "D:\md\Sublime Text Build 3126 x64\sublimeplugin.py", line 797, in run return self.run() File "Pandoc in D:\md\Sublime Text Build 3126 x64\Data\Installed Packages\Pandoc.sublime-package", line 46, in run File "D:\md\Sublime Text Build 3126 x64\sublime.py", line 448, in show_quick_panel if len(items) > 0 and isinstance(items[0], list): TypeError: object of type 'NoneType' has no len()

_

But, I do rst to pdf is successful with pandoc st2!

Assistance appreciated.

Platform: Window 10 sublime 3

MPvHarmelen commented 4 years ago

This plugin has different versions for ST2 and 3. Do you still have this problem?