Hi. I try to access a metadata variable inside a lua filter with pandoc 2.1 but find no easy solution to cover the four cases (known to me): 1. at the command line with: -M key:value 2. inside a YAML block as a single line: key: value 3. inside a YAML block printed at a second line with: key: | value 4. inside a YAML block printed at a second line with: key: - value Inside the lua filter I access the variable using meta['key'] but the type and content depends on the case. 1. returns a string 2-4. returns a table with: 2. { [1] = { ["c"] = value,} ,} 3. { [1] = { [1] = { ["c"] = value,} ,} ,} 4. { [1] = { ["c"] = { [1] = { ["c"] = value,} ,} ,} ,} Hence, an increasing nesting. How to easily "unlist" these tables or access the key directly? And why is there a table key "c"? -- Regards, Mathias -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ac250ed2-67fb-4fef-aed1-45681b15f48c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.