public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>
To: 'russurquhart1' via pandoc-discuss
	<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>,
	pandoc-discuss
	<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Markdown w/Include files convert to PDF?
Date: Thu, 13 May 2021 15:18:48 -0700	[thread overview]
Message-ID: <m21raa46rb.fsf@MacBook-Pro.hsd1.ca.comcast.net> (raw)
In-Reply-To: <aa45b5fd-283c-4138-b43e-41407f9e11f1n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>


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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/aa45b5fd-283c-4138-b43e-41407f9e11f1n%40googlegroups.com.


  parent reply	other threads:[~2021-05-13 22:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-13 15:35 'russurquhart1' via pandoc-discuss
     [not found] ` <aa45b5fd-283c-4138-b43e-41407f9e11f1n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-05-13 22:18   ` John MacFarlane [this message]
     [not found]     ` <m21raa46rb.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2021-05-15  7:53       ` BPJ

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m21raa46rb.fsf@MacBook-Pro.hsd1.ca.comcast.net \
    --to=jgm-tvlzxgkolnx2fbvcvol8/a@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).