From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29223 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Extract Images from Markdown to Docx Date: Sun, 12 Sep 2021 08:34:26 -0700 Message-ID: References: <587134c4-83b5-4983-b329-3f3c1da7913dn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21142"; mail-complaints-to="usenet@ciao.gmane.io" To: Michael Becker , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBEF47CEQMGQEXDZBYUI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Sep 12 17:34:43 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f59.google.com ([209.85.210.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mPRVC-0005JG-P2 for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 12 Sep 2021 17:34:42 +0200 Original-Received: by mail-ot1-f59.google.com with SMTP id q12-20020a05683033cc00b00521230773b1sf6019586ott.4 for ; Sun, 12 Sep 2021 08:34:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1631460881; cv=pass; d=google.com; s=arc-20160816; b=Iw/ngrUGXeaZhOOKSAtWgO08uP54eSs5Sv9rtrsiqsuklr416G1FY0AivTnTIT6wu8 S8GCAHP4b9p2e11cDcltASxqTkPdxcoRNCOmQRDcz9wiZneqhxRgMCK8B+CCrKiO4W1O QgFCSh8WFS4XGkn1IYZPGFAqowfsQ+/s14jYOQA2+dEaePqzx9Ztu3Q8c8agpWTDSFAm aZaB7ktZ6ZSstDsFsJ6sKM02R81RYbFLptzMsGDTJKc7M5oQm3vOwx8+yI3Y593VVsxd bm1FqfkUf+10eGZcXP+mlWPlRUDBTnyAYGgQeQynz4l1gbjmmC2sRXDOg2CrKUNSs2jj cxEg== 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:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=Y+D7TYTDaWGLki7FIcCyrcc746sxggwi9FbpEoLK2hk=; b=XDrgjtkzu6PEPI2FIRQzdQb0QzujpyR0I3k8OwYKWCImAHynESErQBmvvqA/pPV9sM miKq5za/+MO7WQDXT9riKknJ2jVnTGHkSnjW9l4AdeS4DIUMwQdytxCFUb+eimrUebB7 0lSEWaNXFzX6VIfJ8v52/8dj05e63dU1KbLhuynM9vAPc6pO/5p3uh+rXf59yfx0q5MY 8voQjehmOk/hsb8SeeDUrW3nG8DcGPK31I0eFnmDGOeWsZhkZr+5YrvK4Z5rwRLdwSsU R4B8e02Ntd8hEO83I81yDjhmlZMieL1kvRg9rU1oRkRiqtngP1C/bjNEMNBRR5siPHoV UfGw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=0eA4a9Yl; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1030 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version: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=Y+D7TYTDaWGLki7FIcCyrcc746sxggwi9FbpEoLK2hk=; b=RtA98wIyA+s0OOyHB4jCmCV/waAzA5WBzOq31sCQyEQ20Tjz8SyThBAaQX9jeVyeXw 3HTg1trrOk53x3ayJKPL01B/xvrvEdlZ1+NJ2KcesrXHMnfNa/GvchRaSVtsnhRHClca yxtTmVSL/sQMyyNjg5W+UkQOf/+6lndOimy5HaONPs35Q3900iJidoV8BGX98sAMDfXy zrQCf/O66paS6/wsCQT7g0rSFw2XmfkLXDd2cWq31Cm5SfFQUyQMug2zX0UxccVU1KBU rcSQHBxAh5+bByvH1NL+0ROrRmWZYdJpTOWC5dQHb6/cJhXmmUAZwuFkvJxjKohUB7aT ppfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version: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=Y+D7TYTDaWGLki7FIcCyrcc746sxggwi9FbpEoLK2hk=; b=pHRMSkJY5gyk42gZ5p7itHUA+/J9p6LtdNXFgHD5h7vql/hcFrXTwudmMQSzUv4LlU dQ1Mnx+spNMA/yxQvtWBEM2fQvk42l47l/DJKhRFhFnOcotrL3uPAMqcdTCcCOoU6hLl Vl0R7gLRGgWcHS4vuDzq3ucyLQZRAHhRAMgrbUKKzoBJ1qx1YOPsLPkF9loQsQXpwV83 GAH2Bt0gqv2oIqDB1gPw6JDdL2iLIRRIetdobjIMNzfSpfgJdYfPzOc/XEOqM2DbCnzC 6TOjrqY8Xt11gkLFE3E1h9Ad64ODzlGZcY9+KInRROLaJFQg5muW2ioguirzs0zWt7gt NGEg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531B8m0n1Icvsv1UX0wNgv+AxtUtEHIkmNBWV6nfdDMaxPdmjr58 17TtCl2qvpr450zP8zL/yW0= X-Google-Smtp-Source: ABdhPJx2/Y8Z6yy9j73XGqfD0dp5V64wsII4BwLq0knZB7x/UsJJNLbUDaE7jR3UI7xsOjjJETet7w== X-Received: by 2002:a05:6830:20c4:: with SMTP id z4mr6410350otq.339.1631460881756; Sun, 12 Sep 2021 08:34:41 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:53d2:: with SMTP id h201ls398253oib.0.gmail; Sun, 12 Sep 2021 08:34:40 -0700 (PDT) X-Received: by 2002:a05:6808:1295:: with SMTP id a21mr4960265oiw.147.1631460880626; Sun, 12 Sep 2021 08:34:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631460880; cv=none; d=google.com; s=arc-20160816; b=0V3ZojA4Z5ICc8TS6hIlyKgzjNN7bTOxP2YQxMS2LJr9IZV7l/JJKQzSHa1v9h9zpS m9byrf908oWk7rvSNqZVy1d+65uwNWL67BFWHE02yXdvEQ7h1GDcDZiQr9+TEy54wggP szwSWYt2TnzWA41HSw6uIeX5RyLzWqejujz2oNl3CRZ9rZ7aXK4gEpF7pXcN5NNJjJpZ bYqK1CeYRKpCuSE1INSiSnrPSlRRg4M6SextpIW74bs7AN6eV8AMoalQcKJYGOKgj/hV Yaf9EX3rwJN2ryZDgydr/IDxPNDBv0755yZRDNnC8t7kG7o1kmjhvtY6XCiKAqOC65aq /v0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=tKILjlXTaiHTZMqLtARLcrrEgtS30jSCyhaBTJ9tltU=; b=u1draSmmpgB1WjErUqHCzFJVowxTxTyur9lzj/bhnqVBD8KiWPepIzXRBky6Sjk6/y AglTCneWm+kfnuOSSgG7sA8ovSFuLoz9B3opVpfLIDkTw5FPXrkTwErSFeHJ0BYJpauU 2lD4D7IrSUqu/rlcdS4hp81rH7efX5xMGfS4rePvqfEZeLs5AegUqobXGVM74GIVXxXu YTbwKb2ioGVKWu9GPa6O88XbfR3elAeob8JpUoZa1mplp21PJJRR5n2SYPGNG5BRvvez DGIKkwOQtQ/+iDbd+4/1D9CiOGGn+M3yt0kVqhHrfVxMNM0oQ6aTNc8DG/H3z4bjHvev mRpQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=0eA4a9Yl; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1030 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com. [2607:f8b0:4864:20::1030]) by gmr-mx.google.com with ESMTPS id s20si417981ois.4.2021.09.12.08.34.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Sep 2021 08:34:40 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1030 as permitted sender) client-ip=2607:f8b0:4864:20::1030; Original-Received: by mail-pj1-x1030.google.com with SMTP id f11-20020a17090aa78b00b0018e98a7cddaso4743020pjq.4 for ; Sun, 12 Sep 2021 08:34:40 -0700 (PDT) X-Received: by 2002:a17:903:41d0:b0:138:8d81:95d5 with SMTP id u16-20020a17090341d000b001388d8195d5mr6536992ple.67.1631460879158; Sun, 12 Sep 2021 08:34:39 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id w11sm4981415pgf.5.2021.09.12.08.34.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Sep 2021 08:34:38 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 7D530A1A8; Sun, 12 Sep 2021 11:34:26 -0400 (EDT) In-Reply-To: <587134c4-83b5-4983-b329-3f3c1da7913dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=0eA4a9Yl; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1030 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:29223 Archived-At: You shouldn't use --extract-media for md -> docx (but do use it for the reverse conversion). For md -> docx it should just work. But there are some complexities if e.g. your markdown files are not in the directory where you're using the pandoc command. (See the manual under rebase_relative_paths: you could try with `-f markdown+rebase_relative_paths` to se if that helps.) If you want help with this, the best thing is to create a zip file with everything needed to reproduce the problem (a markdown document, as short as possible, and the images you're using), together with the exact command you're using. Michael Becker writes: > Hi there, I'm on a Mac M1 min. Have pandoc 2.14.2 installed. I'm trying to > convert a .mb to .docx file. The file converts fine, but the images are not > getting extracted. The .md file renders the images just fine. Something is > clearly wrong with my extraction path " > > " --extract-media=media"" but I can't figure it out. I've tried various > combinations of this > > --extract-media=/Users/myname/pandocSP/media/ > --extract-media=/media > > > Does anyone have any tips on how I can debug this? > > > Michael > > -- > 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/587134c4-83b5-4983-b329-3f3c1da7913dn%40googlegroups.com.