dfinke / vscode-pandoc

Visual Studio Code extension lets you render markdown to pdf, word doc or html with pandoc
125 stars 36 forks source link

Generic pandoc renderes #14

Open MarkusAmshove opened 8 years ago

MarkusAmshove commented 8 years ago

Hi @dfinke ,

thanks for this cool addons! I really like to write Markdown and be able to target multiple system (e.g. Redmine) via pandoc. And to use it in my favorite Markdown editor is a big plus! :)

I'm normaly not targeting docx, pdf or html, so I'd like to propose a way to generalize pandoc renderes.

It would be cool to set up my own renderes like this:

"pandoc.renderes" :
{
    "textile" : "-t textile -o ${filename}.textile",
    "mediawiki" : "-t mediawiki -o ${filename}.mw"
}

which will then be available in the "Pandoc Render" command next to HTML, docx and PDF.

I could use the existing html additional options from issue #5 , but thats not as clean as it possibly could, because it still gives a html file, as you can't control the output name.

dfinke commented 8 years ago

Thanks, great idea.

It'll take me a bit to get this published. Seems the publishing tool MS provides worked when I put the extension out initially. It is having problems with no resolution.

MarkusAmshove commented 8 years ago

Hello @dfinke ,

I think I could implement it myself, however I don't know how the get the extension up and running.

I cloned this repository, opened it in VS Code, created the out/src folder, did an npm install and pressed F5 in VS Code.

No handler found for the command: 'pandoc.render'. An extension might be missing an activation event.

and Fehler beim Aktivieren der Extension "DougFinke.vscode-pandoc": Cannot find module '/home/markus/scm/vscode-pandoc/out/src/extension'.

Are the errors I get in the new opened VS Code. I tried it on Windows and Linux, with the extension itself untouched.

Is there somethink else I need to do?