The pp puerperocessor is even designed for use with Pandoc

https://github.com/CDSoft/pp

Den fre 14 maj 2021 00:20John MacFarlane <jgm@berkeley.edu> skrev:

One approach would be to preprocess your files with
a preprocessor (cpp, m4, etc.) before sending them to
pandoc; these can handle includes.

https://stackoverflow.com/questions/4779582/markdown-and-including-multiple-files/36104553#36104553

There are also various filters and wrappers around, e.g.
https://github.com/pandoc/lua-filters/tree/master/include-files

I hope to add native include at some point
https://github.com/jgm/pandoc/issues/553


"'russurquhart1' via pandoc-discuss"
<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> writes:

> Hi,
>
> I know standard Markdown has no provisions for a #include function. Our
> system, has added such a function, such that a line similar to:
>
> # include path/to/file
>
> includes that file at that point.
>
> Will Pandoc. when converting Markdown files to PDF, be able to handle this?
> Or is there a way to have it handle this when generating PDF files?
>
> Thanks,
>
> Russ
>
> --
> 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@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/aa45b5fd-283c-4138-b43e-41407f9e11f1n%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@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/m21raa46rb.fsf%40MacBook-Pro.hsd1.ca.comcast.net.

--
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/CADAJKhCu1Pe0%2Bxq1-cwURnuuda4gMLiH4N5FqWzSH%3DbX89sJRQ%40mail.gmail.com.