Great, that worked, thanks.

I just wished that would have been more apparent from the docs. I guessed something like 'tostring' might exist, and tried 'element:toString()' and similar without success. There are three mentionings of 'tostring' on the doc page for Lua filters, two in the section entitled "Global variables" where you would only spot them by chance. And one is in the section about the LogMessage type where I figured LogMessage objects had a 'tostring' method, but didn't know how to use the LogMessage type in the first place.

Cheers,
T.
On Thursday, May 4, 2023 at 8:45:34 AM UTC+2 Albert Krewinkel wrote:

Albert Krewinkel <albert...@zeitkraut.de> writes:

> The alternative is to use `pandoc.write`, e.g.:
>
> print(pandoc.write(pandoc.Pandoc {element}))

The above is missing the second parameter:

print(pandoc.write(pandoc.Pandoc {element}, 'native'))


--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/4c078a54-2252-4253-b2a5-6348ecc1f916n%40googlegroups.com.