pandoc-include icon indicating copy to clipboard operation
pandoc-include copied to clipboard

Parameterized include

Open bersace opened this issue 3 years ago • 2 comments

Hi,

Is it possible to parameterize include ?

Our use case is to include a customized code block.

Maybe is there a workaround ?

Regards, Étienne

bersace avatar Dec 15 '22 09:12 bersace

Hi,

Could you give some example code to clarify what you mean by parameterizing include?

DCsunset avatar Dec 15 '22 15:12 DCsunset

Hi @DCsunset, thanks for your anwser and for pandoc-include.

Something like:

---
metadata-variable: myfile.md
...

!include-from-metadata metadata-variable

bersace avatar Dec 15 '22 15:12 bersace