mohzy83 / NppMarkdownPanel

Lightweight Notepad++ plugin to preview Markdown files
MIT License
224 stars 36 forks source link

[Feature Request] Pandoc post-processing via Save As... #82

Open Darthagnon opened 1 year ago

Darthagnon commented 1 year ago

Pandoc is a command-line tool I use to process written Markdown files into various output formats, eg. EPUB, HTML, PDF, etc.

I was wondering whether it would be possible to implement an optional feature for the "Save As..." button (or a menu export button?) to export the current Markdown file (or folder tree full of Markdown files) through an installation of Pandoc?

With the recently-added INI options to specify pre/post processors, this should be possible? See also this feature request for this very issue in Notepad++: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/11077

To be honest, might be better implemented as a separate plugin, but since this one already has a "Save As" for Markdown preview, I thought I'd suggest it as an improvement, as currently it only saves Markdig-processed HTML.

mohzy83 commented 1 year ago

There are already plugins for this use case. For example the NppExec plugin. Basically its a plugin to execute commandline programms. I am using this one to convert my tex files to pdf with pdflatex.

Its possible to add your suggested feature to markdown panel, but it could take a while. Maybe you are interested to implement this feature and make a PR?