Skip to content
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: add new library function pandoc.utils.type. #7768

Merged
merged 1 commit into from
Dec 21, 2021
Merged

Conversation

tarleb
Copy link
Collaborator

@tarleb tarleb commented Dec 21, 2021

The function behaves like the default type function from Lua's
standard library, but is aware of pandoc userdata types. A typical
use-case would be to determine the type of a metadata value.

The function behaves like the default `type` function from Lua's
standard library, but is aware of pandoc userdata types. A typical
use-case would be to determine the type of a metadata value.
@tarleb
Copy link
Collaborator Author

tarleb commented Dec 21, 2021

This is basically a more general replacement for .t fields on metadata values.

@jgm jgm merged commit d7cab51 into jgm:master Dec 21, 2021
@jgm
Copy link
Owner

jgm commented Dec 21, 2021

looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants