pandoc / lua-filters

A collection of lua filters for pandoc
MIT License
602 stars 165 forks source link

include-files.lua: Support for environment variables #219

Open mfhepp opened 2 years ago

mfhepp commented 2 years ago

It would be super-handy if the filter supported the use of environment variables and the other shortcuts supported by e.g. the Pandoc defaults files syntax so that one could reference files from other directories with ease.

```{.include}
${MY_TEMPLATES}/disclaimer.md
```

or

```{.include}
$MY_TEMPLATES/disclaimer.md
```