-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
list-table.lua throws version-number error when called via --filter, but works with --lua-filter #10
Comments
Is this the standard
|
(Sorry, that was me logged in as the wrong user.) |
I tried it as both an executable and non-executable. Yes, I got that error message, too, and so I ran |
OK. Did you also add a shebang line? I'm guessing that you did something like this (I didn't know that this worked):
With this I get the same as you:
This happens because the lua script is running as a standalone executable and isn't receiving any lua context from pandoc, so But the bottom line is that this was never going to work! Do you now see why? If not, I suggest re-reading the relevant section of the manual. |
I see, that makes sense. The debugging experience was frustrating, but that seems to be on pandoc's side. |
I did a bunch of trial and error, but this error message really threw me for a loop. Running
pandoc test.md -o test.pdf --filter ./list-table.lua
I get the error
lua: /home/jules/.pandoc/lua_filters/list-table3.lua:8: pandoc version >=2.11 is required
. (Needless to say, I am using a newer version.) The filter works as expected when calling it via:pandoc test.md -o test.pdf --lua-filter ./list-table.lua
The text was updated successfully, but these errors were encountered: