From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28824 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arran Ubels Newsgroups: gmane.text.pandoc Subject: Re: Help: Resurively include MD files from links Date: Thu, 15 Jul 2021 11:08:35 +1000 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d7456405c71f1ca7" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23506"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDTZJN445QJRBHUVX2DQMGQEEGCCB3Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jul 15 03:08:49 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f64.google.com ([209.85.210.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m3prt-0005xH-3J for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 15 Jul 2021 03:08:49 +0200 Original-Received: by mail-ot1-f64.google.com with SMTP id p4-20020a0568301d44b02904b420812511sf3244739oth.18 for ; Wed, 14 Jul 2021 18:08:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1626311327; cv=pass; d=google.com; s=arc-20160816; b=FoBY8GELn9cwNOvHURscwtb2AI4r/D+Nv+NJETcwm3x7DRGd/q2h3RC6ynD0VNtUpY 6Zpd3SeUNPLsMWU6nTNR8pvSnH4NpAYpN/i2/79ALlfs+W1yOhSPCUdmm/bmPnMOm9wD +nc1Lk+Z7mCTEg76+/bzPkpiAPaDW52P03eQ5sgnOgIRA8ciSxlZnscJg29P4Z8byFSk uxhHpoW34sUX5oodMsMI9ezplGF8ki1vZ7NJr8jgrMTZUFSV6DEdZ4vtT5UmTdoV6uk+ BOwxDM+HDBZEfKoKRUFi+9EGdft69682TAPGH2X/MCbxcFwM2lj8QfaFM87FtPk0bPq0 Dg6g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature; bh=1Tx7CYKue9+7W1mUcEJNKI0tsR6vh8Whc+5mVH6YVDQ=; b=yxc0W7BviWJ4apy7qpMhph1xNvOKEcc1I3xVDYE63RxdzEwBgkat2ttqU+pF4BIEDQ +dH0FO3JrJ6wxGsVwvZAwZ5pphQ2bExUCZ6Kysib8Z+LdJmhJMkwBxDsbzkEpP84q1sS 0nDISBvMM359Y0Hfh07jP8g6eZ3tVBp4terPGxX7+zyfz5TIVHFuSSgSN8zgTI1lq1Pe KSTm5cYNFARx7aPXXkVqnauFMUcKrH8e2wmdBLh4piSc3oMZ+Km22zA3yKDCtLuuX89c lrsIax+oE5nWbooUjEqJ0StLP/O9sWEKXIPwHxtI0yfPM1oHDrZRmfrEv43LnaGZa2hJ p9RQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@base2services.com header.s=googler header.b=a9y0c4bk; spf=pass (google.com: domain of a.ubels-bkB1qtQT2TKb0bIPGeg95AC/G2K4zDHf@public.gmane.org designates 2607:f8b0:4864:20::f2d as permitted sender) smtp.mailfrom=a.ubels-bkB1qtQT2TKb0bIPGeg95AC/G2K4zDHf@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=1Tx7CYKue9+7W1mUcEJNKI0tsR6vh8Whc+5mVH6YVDQ=; b=mL0loX+HGFhk35FTMAKyJYboP1sGNDLzeLnactX5/pgp5parkz197RsFdll/L2QJ3W sNJOflxh6ma8MfCVysej9RvYSV7QfIQTmHPlV78758DeqiABzLoJvYtRrCXlQvmDca00 hzHBI0qMFGVqKyNax2x2FpQNW4cQU6zRJIvOgRmp95p3DnK6OJFQO0XcfVuUQ7mVGd0m SZKQL2zi4FZjIPCxfT6BRz3njTQnUW8xgKTI0ORWBWvnRBct/oyvdx6M/WKyZeXwAdYL AqIALkuClfdOUn15zGHzgjFshNE4pJqW8Va6rXceJRxjx6vdmfkIR2GtHLnI2CBHpawi EuQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=1Tx7CYKue9+7W1mUcEJNKI0tsR6vh8Whc+5mVH6YVDQ=; b=LF7Xagi8ozjrbV6gBBc1qkmN9HNro4gCIR1x5TS7RceetfJsA4D+OuqruQX4K6VJ2m 6ho2IpqQHabbwn9MNe0ll35y2ABlrfMAxTThv1pS376gHccM5MoBB58MKDHBiHAsNfgd 9Ga046j2frdu9Bg7GpueplTkdBdth0nKPalHy7I7vN9B4fMZUfYoOMCNaB81y1lG9v/n IQrR3Nouj9gFWT2JmmQOzg6h3ai5+/7RzJV2K3HSsZB9n+Soma/g0HNckt1DQRwaRJbu EKm7pJB1LUDgcoQOMl3T8T2SMWPPfhu23Mygdb0ghMaGj01VeLNi4h5Ego2JigivF63p RHYg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530zT9IUyUjEOrhz2LT/RWTEh2KDJpik6PwI0X9y8V9eRlJvOV3p e6kZTN1bxJI8X2Tfk9Jk54U= X-Google-Smtp-Source: ABdhPJyAg1sdU7CHjfG3l/vh8RM5ujVCKAqiSNcSxi7lf2IgcRJYuKGxZeumyaVUujQNSUVXsrndZQ== X-Received: by 2002:aca:abc2:: with SMTP id u185mr728525oie.127.1626311327390; Wed, 14 Jul 2021 18:08:47 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:f409:: with SMTP id s9ls1970054oih.5.gmail; Wed, 14 Jul 2021 18:08:46 -0700 (PDT) X-Received: by 2002:aca:b38a:: with SMTP id c132mr747877oif.90.1626311326102; Wed, 14 Jul 2021 18:08:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626311326; cv=none; d=google.com; s=arc-20160816; b=wxjTu08Y17PuENZ1LO/1FjPk7RPeFxQWlTs7B3WAylnf+pBdXr9JVpqCCuxlXqT/pe enfFdNKAVPdftpbgSSY1SNvplwjdgxR3egQzbiuEEJ/BZdzxIIJTJLUID+ym9sqAk6Ex dt4ej7tANBxPRDTBHgT7grNNHEAJbAMi1Q1HSzXuoQ8xlI8/dgIy5dvtMSyda6NdHkF3 1LhInW/TFNN5IoF1qv0OxlHNmz9KzIhf6jooe5MCWOab3qUs/Ir6OOzLgBxe8E432DNV 1/5SYWokRcOgmLIVJTvHYLnxDLLwPa75nWjSiogrQRZth4VpFPxDS0dk46kb6DLd1f94 Hs7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Ow9KoayAUlkHVVlS/bEgBAkkYra4uYo5h1r5oU7pmoA=; b=bCeOJPkPxKHiUSTRNTiNotQwIpb2gDMSrZT+Y4cgyYJedqmupTv9YhdANJHapLL+ZX 2WJKIIUBLQCBmAB28XgK3hFRNS824U8pCwr5a6+rbivUCKNXZ4s6BzUIT6rKdVyP7fTg uKRtJJPMhEhSYptyioaZtO1e7Rr14nRXwh8r2k+ZY/xZNGt+QUfzAgAccZ6DmMo1lpRz h5/07SekD/moj9an51ZKqOmHGCVETpsKPklrJ9L3jSUT3Uty8reQaloQyie4aAzy/vt8 izT3ngivlEZz1NaGYJFSssPYJeS3+CHatJCDW3n7YlSe8Fub4Z9iv2QScLiJn5F0CuA3 z1Kw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@base2services.com header.s=googler header.b=a9y0c4bk; spf=pass (google.com: domain of a.ubels-bkB1qtQT2TKb0bIPGeg95AC/G2K4zDHf@public.gmane.org designates 2607:f8b0:4864:20::f2d as permitted sender) smtp.mailfrom=a.ubels-bkB1qtQT2TKb0bIPGeg95AC/G2K4zDHf@public.gmane.org Original-Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com. [2607:f8b0:4864:20::f2d]) by gmr-mx.google.com with ESMTPS id j26si704647ooj.0.2021.07.14.18.08.45 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Jul 2021 18:08:46 -0700 (PDT) Received-SPF: pass (google.com: domain of a.ubels-bkB1qtQT2TKb0bIPGeg95AC/G2K4zDHf@public.gmane.org designates 2607:f8b0:4864:20::f2d as permitted sender) client-ip=2607:f8b0:4864:20::f2d; Original-Received: by mail-qv1-xf2d.google.com with SMTP id gh6so2045137qvb.3 for ; Wed, 14 Jul 2021 18:08:45 -0700 (PDT) X-Received: by 2002:a05:6214:846:: with SMTP id dg6mr1081700qvb.9.1626311325330; Wed, 14 Jul 2021 18:08:45 -0700 (PDT) In-Reply-To: X-Original-Sender: a.ubels-bkB1qtQT2TKb0bIPGeg95AC/G2K4zDHf@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@base2services.com header.s=googler header.b=a9y0c4bk; spf=pass (google.com: domain of a.ubels-bkB1qtQT2TKb0bIPGeg95AC/G2K4zDHf@public.gmane.org designates 2607:f8b0:4864:20::f2d as permitted sender) smtp.mailfrom=a.ubels-bkB1qtQT2TKb0bIPGeg95AC/G2K4zDHf@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:28824 Archived-At: --000000000000d7456405c71f1ca7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, 1. Relative path of images and other links in document don't work, if I for instance run: pandoc -o test.pdf introduction.md firstchapter/1.md firstchapter/2.md secondchapter/1.md and in secondchapter/1.md it refers to an image in secondchapter it would so as [alt text](img.png) but pandoc expects it to be: [alt text](secondchapter/img.png) as it expects content to be relative to the working directory not the referring document 2. Doesn't update references to internal links between documents 3. When you use something like find to generate it (as this is a large multi md document) it's hard to control ordering with something like find and produces more overhead when adding new leaflets. On Sat, 10 Jul 2021 at 19:41, Bastien DUMONT wrote: > Hi, > > What can't you achieve by simply passing a list of files to the command > line like this? > > pandoc -o test.pdf introduction.md firstchapter/1.md firstchapter/2.md > secondchapter/1.md > > Le Thursday 08 July 2021 =C3=A0 08:59:06PM, Arran Ubels a =C3=A9crit : > > Hey, > > > > I attempted to create a lua script for this.. However I wasn't able to > > figure it out. (From a fairly primative base sorry..) > > > > I am trying to make this work: > > > > https://github.com/aubelsb2/pandoc-md-recurse > > > > But using a lua script to pick up the links, append the md file, > > substitute them with references to the new section, and insert images > > from a relative location to the file. > > > > -- > > 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 (mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > > To view this discussion on the web visit > > ( > https://groups.google.com/d/msgid/pandoc-discuss/c0ecb03f-64c2-4c0e-8b0c-= 56ed1f380ac5n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter > ). > > -- > You received this message because you are subscribed to a topic in the > Google Groups "pandoc-discuss" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/pandoc-discuss/dEC8YMw3lpE/unsubscribe. > To unsubscribe from this group and all its topics, 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/YOlrCbxx/4Xz8FCw%40local= host > . > --=20 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 e= mail 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/CALpzYsANnAz1%3DYrN4Z%2B8k2cZiQ3TBZc1FURUHOsy1LZFvYfFGA%40ma= il.gmail.com. --000000000000d7456405c71f1ca7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

1. Relative path of images and othe= r links in document don't work, if I for instance run: pandoc -o test.p= df introduction.md firstchapter/1.md firstchapter/2.md secondchapter/1.md a= nd in secondchapter/1.md it refers to an image in secondchapter it would so= as=C2=A0[alt text](img.png) but pandoc expects i= t to be:=C2=A0[alt text](secon= dchapter/img.png) as it expects content to b= e relative to the working directory not the referring document
=
2. Doesn't update references to internal links between documents
3. When you use something like find to generate it (as this is a l= arge multi md document) it's hard to control ordering with something li= ke find and produces more overhead when adding new leaflets.
On Sat, 1= 0 Jul 2021 at 19:41, Bastien DUMONT <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org> wrote:
Hi,

What can't you achieve by simply passing a list of files to the command= line like this?

pandoc -o test.pdf introduction.md firstchapter/1.md firstchapter/2.md seco= ndchapter/1.md

Le Thursday 08 July 2021 =C3=A0 08:59:06PM, Arran Ubels a =C3=A9crit :
> Hey,
>
> I attempted to create a lua script for this.. However I wasn't abl= e to
> figure it out. (From a fairly primative base sorry..)
>
> I am trying to make this work:
>
> https://github.com/aubelsb2/pandoc-md-recurse<= br> >
> But using a lua script to pick up the links, append the md file,
> substitute them with references to the new section, and insert images<= br> > from a relative location to the file.
>
> --
> 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 (mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m).
> To view this discussion on the web visit
> (https://groups.google= .com/d/msgid/pandoc-discuss/c0ecb03f-64c2-4c0e-8b0c-56ed1f380ac5n%40googleg= roups.com?utm_medium=3Demail&utm_source=3Dfooter).

--
You received this message because you are subscribed to a topic in the Goog= le Groups "pandoc-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pandoc-discuss/dEC8YMw3lpE/un= subscribe.
To unsubscribe from this group and all its topics, 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/YOlrCbxx= /4Xz8FCw%40localhost.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://gro= ups.google.com/d/msgid/pandoc-discuss/CALpzYsANnAz1%3DYrN4Z%2B8k2cZiQ3TBZc1= FURUHOsy1LZFvYfFGA%40mail.gmail.com.
--000000000000d7456405c71f1ca7--