public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Bastien DUMONT <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Markdown to docx conversion not using the images in the media folder
Date: Wed, 12 Jul 2023 13:47:27 +0000	[thread overview]
Message-ID: <ZK6u70WMm3t0v8hD@localhost> (raw)
In-Reply-To: <c6a520db-c88c-44f1-b8b7-4ecc434fca2bn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>

From the manual, --extract-media serves to “extract images and other media contained in or linked from the source document to the path DIR”, so it is normal that it does nothing in your second command. I guess that you should use --resource-path instead.

Le Wednesday 12 July 2023 à 06:14:08AM, Sarthak Narayan a écrit :
> Explain the problem.
> I use
> 
> pandoc --extract-media=./media -t markdown_mmd -s document-2.docx -o
> output-2.md
> for converting my document-2.docx to output-2.md. I save the images in the
> media folder.
> 
> But when I try to convert docx to markdown using the command:
> 
> pandoc --extract-media=./media -t docx -s output-2.md -o final-2.docx
> I don't see the images that were present in output-2.md in the final-2.docx.
> 
> Pandoc version?
> pandoc 3.1.4
> Features: +server +lua
> Scripting engine: Lua 5.4
> OS: MacOS
> 
> --
> 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 [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit [2]https://groups.google.com/d/msgid/
> pandoc-discuss/c6a520db-c88c-44f1-b8b7-4ecc434fca2bn%40googlegroups.com.
> 
> References:
> 
> [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [2] https://groups.google.com/d/msgid/pandoc-discuss/c6a520db-c88c-44f1-b8b7-4ecc434fca2bn%40googlegroups.com?utm_medium=email&utm_source=footer

-- 
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/ZK6u70WMm3t0v8hD%40localhost.


      parent reply	other threads:[~2023-07-12 13:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-12 13:14 Sarthak Narayan
     [not found] ` <c6a520db-c88c-44f1-b8b7-4ecc434fca2bn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-07-12 13:47   ` Bastien DUMONT [this message]

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=ZK6u70WMm3t0v8hD@localhost \
    --to=bastien.dumont-vwifzpto/vqstnjn9+bgxg@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).