Closed berquist closed 7 years ago
pandoc-run-pandoc
requires an argument, hook functions cannot take arguments. I guess the easiest way to deal with that is to make that argument optional. I just pushed a commit to Github that does just that. So it should work once you upgrade the pandoc-mode
package.
Ok, I was confused because the docstring said "If called with a PREFIX argument", but I should have seen the lack of &OPTIONAL. Now it works as I expected.
I have a function that exports from Markdown mode after every save:
However, when I replace
'markdown-export
with'pandoc-run-pandoc
,run-hooks
complains with this traceback:Is there another function I should be using?