Well that was easier than I thought. I did not try that. My bad 🤦🏽‍♂️. It's all good now Have a nice day Le jeudi 2 juin 2022 à 18:48:43 UTC+2, Albert Krewinkel a écrit : > > Felix SOEDJEDE writes: > > > My real need is that I want to be able to access variables in my lua > > filters. > > In that case there might be a simpler solution: The global > PANDOC_WRITER_OPTIONS became available in pandoc 2.17. With that you can > access variables in writers by indexing > `PANDOC_WRITER_OPTIONS.variables`. > > To give a short example: if you call pandoc with > > pandoc --lua-filter=var-test.lua --variable foo=hello <<< '' > > where `var-test.lua` contains > > print(PANDOC_WRITER_OPTIONS.variables.foo) > > then you'll get `hello` printed to the terminal. > > HTH, > Albert > > > -- > Albert Krewinkel > GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/35a61b60-d763-4d60-a545-cd5329f65883n%40googlegroups.com.