-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Lua filters: notes on v2.16.1 differences #7657
Comments
Thanks, it's a relieve to know that things are working ok again. The I plan to generate the constructor documentation from the Haskell code, and to make the docs accessible from within the Lua interpreter. It's probably worth a separate issue, too. |
Thanks. I'll raise issues as requested. What about item 2 "Missing argument error messages"? |
I had missed that somehow. Definitely a bug in hslua. I'll raise one there. |
OK, I think that all the issues raised here are now covered in their own tickets, so I'll close this one. |
All my filters are now working fine with 2.16.1, but I wanted to list a few things that I've noticed, some of which might be unintentional. I'm happy to create new issues for anything that might result in a future change. I'm also happy to contribute to the best of my ability (which sadly doesn't include Haskell programming).
Userdata pairs() include 'tag', nil values and functions
I noticed that the attributes returned by pairs() include
tag
, severalnil
values (for attributes that don't necessarily apply to the element type) and various functions. It's easy to ignore them, but I wondered whether it was intentional.Missing argument error messages
Omitting the
src
argument from theImage()
constructor gives a strangestring expected, got string
message:Pandoc 2.14.1 (presumably unintentionally?) permits this:
Don't get me wrong: it's great that the error is caught and reported.
AttributeList constructor (and constructor docs in general)
The 2.15 release notes mention
AttributeList()
but I didn't see any info on how to use it.More generally, I feel that the lua constructor documentation is rather sparse. Compare pandoc.Image, which states the data type of each field, with pandoc.Image(), which is quite vague. For example, I think that
caption
can in fact be either a string or a list ofInline
s?The text was updated successfully, but these errors were encountered: