I think this requires a filter. There's a very simple example at https://pandoc.org/lua-filters.html#macro-substitution (that illustrates how to expand '{{foo}}') and I have written my own that uses '%foo%' syntax. I could share an outline of my filter if you like. W.

On Wed, 9 Feb 2022 at 01:55, Shiwei Weng <arbipher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hi all,

I am new to pandoc. I am trying to render from a markdown file to a html file.

I wonder if it's possible to interpolate a field in the metadata e.g. 
if the meta has `foo=MY_FOO` , in the markdown I write `$(foo)` and I hope the result html has `MY_FOO` without using a template.

best,
Shiwei

--
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/986f8e0f-9bf8-44ba-aae9-678315f1da94n%40googlegroups.com.

--
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/CAEe_xxjkA5yFoxtq7aFfxfxw_88HO1aL46URc1qyr3fdzddudg%40mail.gmail.com.