public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Craig Parker <craig.fossfolks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: Image resources are in local but pandoc searches in url
Date: Fri, 14 Oct 2022 09:20:27 -0700 (PDT)	[thread overview]
Message-ID: <48fffed6-ebd1-4b67-bde7-9712b4b11b8en@googlegroups.com> (raw)
In-Reply-To: <104b27cf-2655-4b9d-af96-8595468994d1n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 1660 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 3661 bytes --]

  parent reply	other threads:[~2022-10-14 16:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-14 12:45 Joan
     [not found] ` <104b27cf-2655-4b9d-af96-8595468994d1n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-10-14 16:20   ` Craig Parker [this message]
     [not found]     ` <48fffed6-ebd1-4b67-bde7-9712b4b11b8en-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2022-10-17  7:54       ` Joan

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=48fffed6-ebd1-4b67-bde7-9712b4b11b8en@googlegroups.com \
    --to=craig.fossfolks-re5jqeeqqe8avxtiumwx3w@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).