You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/opt/sublime_text/sublime_plugin.py", line 812, in run_
return self.run(edit, **args)
File "Pandoc in /home/_/.config/sublime-text-3/Installed Packages/Pandoc.sublime-package", line 103, in run
TypeError: string indices must be integers
The text was updated successfully, but these errors were encountered:
I think in order to be able to give it the text argument with the name of the transformation, some modifications need to be done in the code or another function would need to be created because the transformation argument in the run function that is being called is in fact a dictionary.
While writing this answer, and based on your example, I figure out you can actually do this in a "not-so-pretty" way by giving explicitly the dictionary with the settings as the argument. I use html syntax but you would just have to copy your pdf settings here:
I would also love to be able to do this. It seems like there's a fork that has solved this problem: https://github.com/geniusupgrader/Spandoc, maybe someone could look into how much work it is to port their solution?
Hello,
Right now I'm using this to convert markdown to PDF. This is the only way I'm using this.
Is there a way to avoid the dropdown option every time? As I want to convert to PDF every time I use this.
Also, is there a way I can link this into the build system? So I can just click Ctrl+B when editing markdown and auto generate the PDF?
Maybe I'm using this extension incorrectly or there's an alternative. I've had a quick look at the settings file and couldn't find an option.
I've tried setting up a hotkey:
However this fails with:
The text was updated successfully, but these errors were encountered: