Closed mfhepp closed 2 years ago
Yes that makes sense. This is an easy change; a hand-written instance of FromJSON SaveFormat
needs to be implemented, rather than the one derived from Generic
.
Do you feel up for putting together as PR for this? I don't have much time these days
I've made the parsing of save format from configuration as flexible as 'inline' format specification. For example, png
, PNG
, and .png
are considered equivalent.
This fix will be available in the next release. Thank you for submitting this issue!
Version 1.5.0 was just released, which includes this fix. It might take a few hours for executables to be uploaded to GitHub Releases.
The output format string in a
pandoc-plot
configuration YAML file must be in upper case, because that is what Haskell seems to expect. Unfortunately, making a mistake here leads to hard-to-debug errors:In a typical tool-chain, pandoc-plot will only fail to load the settings - but this is hard to spot in some cases, e.g. if it silently uses another path for the binaries of the toolkits.
It was only when I tried this command
$ pandoc-plot toolkits --config ~/myproject/pandoc-plot-settings.yaml
that I found the true cause:
So bottom-line: