-
DescriptionHello everyone, I'm currently learning how to create shortcodes, and I'm encountering difficulties extracting meta-data from YAML into my code. As an example, I'm trying to retrieve the ORCID number from the author field. The goal is to have Here's an example of my YAML:
And this is how my Lua filter looks:
My problem is that I always get "ORCID not found," even when ORCID is set in YAML. What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Unfortunately this is really badly documented on our side - really sorry about this. We'll improve !
Basically, So
Hope it helps |
Beta Was this translation helpful? Give feedback.
Fortunately, I got the answer here. In addition to your suggestions, my script was lacking the right function at the beginning.. ;) As it is
function(args, kwargs, meta)
, the data is inargs
, not inmeta
...The working lua script looks like this now: