From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31550 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Craig Parker Newsgroups: gmane.text.pandoc Subject: Re: Image resources are in local but pandoc searches in url Date: Fri, 14 Oct 2022 09:20:27 -0700 (PDT) Message-ID: <48fffed6-ebd1-4b67-bde7-9712b4b11b8en@googlegroups.com> References: <104b27cf-2655-4b9d-af96-8595468994d1n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2028_376318901.1665764427148" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9638"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDPL77HMC4IMZGFGTIDBUBDA2NYEC-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Oct 14 18:20:32 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f190.google.com ([209.85.167.190]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ojNQG-0002Lw-GI for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 14 Oct 2022 18:20:32 +0200 Original-Received: by mail-oi1-f190.google.com with SMTP id f16-20020a05680814d000b003506268b99fsf2255000oiw.2 for ; Fri, 14 Oct 2022 09:20:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=sXfayJG9zsQPR4aKrohlg3Kf6dhHQzL3C7Xw2+QNGO8=; b=ICrbL9/AyjjWCjFmHLtR89Wl51eY0JT/C7Rmkhi6GL6h7pAgK3MXlsnZVJcw6F3v+f DyotFCCqwgfkZx0Cx8EFl5CCy80pTa8dejHnsrsVtPMqpHYS4yMqwcpwPd8OJ6Cq2mch DrB2f1wxA6UnLeq4Qa2IkBHTf0r01C5OOib3muTOaL8sZNwkfSMcmrHyBiEQfxDs37+E S1mDVNMKis9nCrKeVkkREtBV2P/iaX7e4+z3ZlkKqFj3FHYaWcNUAxiMa6q+rSneqpi/ vd+6+K1D+XPYq5h3Um7UFJVVWhhpeYZNgNkzparErBk6HgN5mGrF1UwscClj0nj9pkE+ OZOw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=sXfayJG9zsQPR4aKrohlg3Kf6dhHQzL3C7Xw2+QNGO8=; b=TuR55MrfAs1c/IMJUzUvu5tfKQzS5rBG5E1ECh7IIO2pkGOFQlPJXtrwMgnNnmKwdO tTIwSSaYm5oMCJ+Q2jf+qCqhvAEomX3AA+E/iI7EeFbVT89LyewUWw3uYiLvSGpx6p3n c7uNbxylBRfwpHWiAV2lqTDjhXhEKp8f8ESkaxZYqBERZlwTJ6Bl0pYLkenO9yGkRaZD zizpwFVeiy686E0oQK6uW5vBHQ4m94Ts+Mjb/T5Bh7jG1F5FYIe6OSJ1SpoLVfuhtlcE reCTc1Mx+Vjn4tu+H/txIQcsHlMB38BXQseOX/bCozeDgaf2t+84CENGH+qQYRMvvC4G NYSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=sXfayJG9zsQPR4aKrohlg3Kf6dhHQzL3C7Xw2+QNGO8=; b=yFTRk7fnHoI6tHY+S08J92uFPmE9sVuifKS6gCARfKa/ubiBuomwTiiWnU0uSgoYl5 FFGMcC49D3omvi67RR30mOppL2scpbx64rhLy+YwW4t9eARVMOr/u6VYEcYHerc3KWhg gED/7UoOyUK+G23wQalRmp0zvUP7e2xjG6vWeES8+Y5YTzNRpIietz6kdYkftoKi9iGD o5wpT2BOA9m3htv8VFD+IdkzMnKxbJpNsaaJHnP7fDLxABwCZSKLVLFgHQ09MUZPhp06 lVHCVbVtxu40D6pxBKHg65gFkwHoiR9T8/JtpQ+GGbdDxY2gG195DGuvlEJZN54/7eeP C4tg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf3n8d28neAr8Cq4xPubCZnLv5DFugNXs4f+Hz/z0yXVYhjU5nec JJEIUWd6YjVEt2hF5+q7c/A= X-Google-Smtp-Source: AMsMyM7Xj5okx/iUo+faXzGALAlNYwcr8njlTL39P7ILuiA7yjyTgW+xSsZvqqu/PeOgm/0SpN1rJQ== X-Received: by 2002:a05:6808:d4f:b0:351:62ce:d99c with SMTP id w15-20020a0568080d4f00b0035162ced99cmr2822573oik.244.1665764431252; Fri, 14 Oct 2022 09:20:31 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:546:b0:354:6639:a1f with SMTP id i6-20020a056808054600b0035466390a1fls1572855oig.0.-pod-prod-gmail; Fri, 14 Oct 2022 09:20:28 -0700 (PDT) X-Received: by 2002:a05:6808:1809:b0:354:7023:584c with SMTP id bh9-20020a056808180900b003547023584cmr7705634oib.166.1665764428101; Fri, 14 Oct 2022 09:20:28 -0700 (PDT) In-Reply-To: <104b27cf-2655-4b9d-af96-8595468994d1n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: craig.fossfolks-Re5JQEeQqe8AvxtiuMwx3w@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:31550 Archived-At: ------=_Part_2028_376318901.1665764427148 Content-Type: multipart/alternative; boundary="----=_Part_2029_1200967182.1665764427148" ------=_Part_2029_1200967182.1665764427148 Content-Type: text/plain; charset="UTF-8" Do you have to preface the image URL in the document itself with ./ ? I just yesterday uncluttered a directory, and now have md, html, and pdf files in their own separate subdirectories. But now I have to use a dot/slash in the markdown because I'm running the script (pandoc/weasyprint) from a directory above where all the files and images are. On Friday, October 14, 2022 at 8:45:38 AM UTC-4 Joan wrote: > I have been searching for this in this forum, tickets, etc,,.. and haven't > been able to find a answer to what seems to be simple. > The case is that I'm converting from a local dokuwiki export to gfm and I > wanted to migrate the images too. > The script I'm using is: > *pandoc -s -f dokuwiki -t gfm > --resource-path=/home/user/src/wiki_gitbacked --extract-media ./media/ > pages/test_webservices.txt -o ../dsi.wiki/test_webservices.md --verbose* > And I get an error that pandoc couldn't fetch the resource at the url > http://test_webservices/rest.png (test_webservices is the dokuwiki page > name) > > The file is at media/test_webservices/rest.png so if it was using local > paths it would get the proper image. > > Is there anything I'm missing on this? > > The full message is attached. > > Thanks, > > Joan > > -- 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/48fffed6-ebd1-4b67-bde7-9712b4b11b8en%40googlegroups.com. ------=_Part_2029_1200967182.1665764427148 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Do you have to preface the image URL in the document itself with ./ ? I jus= t yesterday uncluttered a directory, and now have md, html, and pdf files i= n their own separate subdirectories. But now I have to use a dot/slash in t= he markdown because I'm running the script (pandoc/weasyprint) from a direc= tory above where all the files and images are.

On Friday, October 14, 2022 at= 8:45:38 AM UTC-4 Joan wrote:
I have been searching for this in this forum, tickets= , etc,,.. and haven't been able to find a answer to what seems to be si= mple.
The case is that I'm converting from a local dokuwiki e= xport to gfm and I wanted to migrate the images too.
The script I= 'm using is:
pandoc -s =C2=A0-f dokuwiki -t gfm --res= ource-path=3D/home/user/src/wiki_gitbacked --extract-media ./media/ pages/t= est_webservices.txt -o ../dsi.wiki/test_webservices.md --verbose
<= div>And I get an error that pandoc couldn't fetch the resou= rce at the url http://test_webservices/rest.png (test_webser= vices is the dokuwiki page name)

The file is at media/test= _webservices/rest.png=C2=A0 so if it was using local paths it would get the= proper image.
<= span>
Is = there anything I'm missing on this?

=
The full message is attached.

Thanks,

Joan

--
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://groups.google.com/d= /msgid/pandoc-discuss/48fffed6-ebd1-4b67-bde7-9712b4b11b8en%40googlegroups.= com.
------=_Part_2029_1200967182.1665764427148-- ------=_Part_2028_376318901.1665764427148--