xwmx / pandoc-ruby

Ruby wrapper for Pandoc
MIT License
340 stars 43 forks source link

Input file names with spaces are not quoted #45

Closed offbyone closed 1 year ago

offbyone commented 1 year ago

When running thusly:

input_file = "input/roam/Electronics Tools.md"
PandocRuby.new([input_file], from: 'org', wrap: 'none').to_gfm

The underlying pandoc command will look like this:

pandoc input/roam/Electronics Tools.md --from "org" --wrap "none" --to "gfm"

This fails, obviously, because the filename isn't quoted.

xwmx commented 1 year ago

@offbyone Thanks! I updated the tests and this is now available in the latest release version, 2.1.9.