From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29224 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Becker Newsgroups: gmane.text.pandoc Subject: Re: Extract Images from Markdown to Docx Date: Sun, 12 Sep 2021 09:38:47 -0700 Message-ID: <7b04a65e-ba3a-48f6-abce-1532c47b90a4@Spark> References: <587134c4-83b5-4983-b329-3f3c1da7913dn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="613e2d1e_ead6f57_884" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38363"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss , John MacFarlane Original-X-From: pandoc-discuss+bncBCUNV74YYMKBBIO27CEQMGQEWDFI47Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Sep 12 18:39:00 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ua1-f59.google.com ([209.85.222.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mPSVQ-0009qt-E2 for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 12 Sep 2021 18:39:00 +0200 Original-Received: by mail-ua1-f59.google.com with SMTP id n42-20020ab0592d000000b002b5c159f71bsf4643085uad.11 for ; Sun, 12 Sep 2021 09:39:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1631464739; cv=pass; d=google.com; s=arc-20160816; b=hgbLUbGnEP/V+LV+S9HkJU7oHS5G+jmEsxl/8WdDM6GXlSpXA1RtuMEyjsU2iRRrra 3JqlzaGduPHxv4Zhz6a4mA4K3t2RkAie3d3c1uONCeedC4fKmGy1KS9lwi5d6TRogdRt rgFHW0wbRWktW/NNIwh3ZOwAKfe3l+PSRIuORGflRvHwQjR+g9Ig38p8INKGwKjVqUXD lMHZcK9mklxppnbA+KLT3nsZhgbwrj8XSQoqX2LHP/RgWjNy/ZdtEd+Z/xCcUI8Zca/y Vf1prCV/gGPUe+7JPr1DGmrecH8x0V/3cNnjJDHAqEdsu+jVll5/s+eW8+LO8exXcfrJ CYrQ== 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:subject :references:in-reply-to:message-id:to:from:date:sender :dkim-signature; bh=cEsh+v0m2oiEMmpCW98C7+f1+lMWOohib7DaHhqKmts=; b=cK8CcsEx7HUh6jzg/Wq2VT58tOjHqSI4StpBb2xN9TpDoDzg9SJ9bs1gJzICy863BR AcR+0xMlQyK4Wi9XbZFd0ORxLPV/XftPIt/ZrUBvNpMSIrH0daNiXPKRlR44JhnBwMgN NdF6S7iBmh+fCXxPJ0NcnSip2R4kn2dEZomkUfNIUkzSKpsx/fefXVl5D96mQevg3Y0c dlKsi8Hde44linqBdNtu7CEvPUHrnqCfRmxS2QbraEetUOA81qAbTu6sF1ReK2/pTUNg DP01V0slbzM+lSG2qsrSFintdRjQpRv5/2KpZd/WylD05wB3fQrtZ95l66mxZO0wKxK4 wwWw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@identitypraxis-com.20150623.gappssmtp.com header.s=20150623 header.b=S5Ajw5yu; spf=neutral (google.com: 2607:f8b0:4864:20::532 is neither permitted nor denied by best guess record for domain of michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@public.gmane.org) smtp.mailfrom=michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:in-reply-to:references:subject :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=cEsh+v0m2oiEMmpCW98C7+f1+lMWOohib7DaHhqKmts=; b=Cy1rHI92L1fbKFuVtlqTMJBTuF6kwRSy6WQuaM3BPI1ffhzIfv4ebsNvSpkKS34Iuq CuVFEqvemIvTfwezgM7LJE2V9TCmmKklYQ2KvPqEhNiwzXbT1Y8aPJESYHv1x0c9hrTR IWA14pLAmLPYIEBNha+WCjQ8XOqUAunFOCB0pUaPNMc0tEBl0SpMv7OIjsfxQ+Mf5bH/ PG97xm3dAGUj9nMRx5QZD6gxZklzabWtQrkwUuABc+mLlVtD7zWyURqsH1YiDFvPgr3n euNEHDNqStIvMbkQAb0pjn4LBR62FnwXb2/OevNjPqjutFDWvkRJtcCyCb93StTxRfqh rNEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject: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=cEsh+v0m2oiEMmpCW98C7+f1+lMWOohib7DaHhqKmts=; b=lUOb/JSx1AFggEMHTFwfKB2du0Y4SB9Ci2XYyPyn20+C3gHJbKryQOpsjvt17dxOF4 Ho8uFgPgHplgDfLMb6IWvMebNz/lLp23nv7BopPBb60B8uFiPDcGaEvKAsi800bgR5cF mcgDlInm+QorGKddAE0wF0dYk7ZwPedeaQpRh36b33WbjmTsErrVif/GLhvDqk1fxek1 AW3E3TUfYC08REAGndC39ln7wQ2SSms64e+98I2AFqRqaujVp/SCtrxZ3mxNKhifuGb2 nflJQXEO/y0/BvQy6jAxVoTZei5SLPeAqGViwgYfrYmOHNdA9mUnQk1RCpX7ggISFyVr nv9Q== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530eS2TXGw3h8jix7zk6LRtY2pUxm56UKZdAg+2ONpkbgN6SbPB6 CsY5uJXZRNdUWyKTNm6XxgM= X-Google-Smtp-Source: ABdhPJz8Csx64OdvjtPsZAt1yqLFLzsuDr/gkwkwDE6fBwFsa3PYjsJ88WRKXcHU/OcQGxiomDCDcg== X-Received: by 2002:a67:fc05:: with SMTP id o5mr2808710vsq.34.1631464739421; Sun, 12 Sep 2021 09:38:59 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a67:f294:: with SMTP id m20ls509053vsk.3.gmail; Sun, 12 Sep 2021 09:38:57 -0700 (PDT) X-Received: by 2002:a67:1701:: with SMTP id 1mr2940641vsx.35.1631464737507; Sun, 12 Sep 2021 09:38:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631464737; cv=none; d=google.com; s=arc-20160816; b=BCWAIXoMzsX3DbnIUNosrZTSo5B+L258ejimlBV4NkJMXX8Niu7m2XJNLbsXisGWVm MFOGPXtRyOCPhzWxEkxqI4hYD125qclqI1EnrKBrtPdzWbgGKjsJ8U+yvMoab/MvaYeC aKuHKGRwvex2pWRA0Xb3wknF+eY1xf7WU6YuVP5DjeHq11E1PCzVCU2hPZpw1bkxaC4C 5igp3bC1ZddUcgKybx2k35p/9611wxzjFZp5l41LxY33QmtBEgmEj8ZEp6xKFBJGL6Ow 59Dm4zuTWo8qZUTZthDZKIBCg33ihWbaFOiSMQRpw9NdlGHXkfa+5WQbi15F5MTocEQx jaBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:subject:references:in-reply-to:message-id:to:from:date :dkim-signature; bh=qvYHStApVHC7mN4THLnXP0YSDHMKUtlImBSmQFQ9d/M=; b=fFLgKgGq3Gn1ea98NKrfHUlXItJGfY8cseIu0uEv3SCVkFAXmlsfEC5vCSSmn6RgmV nN2K0FQU5tW1XPlTFFJb/enRgZd9YpuLq5tPJMR6eKBV4GE8fixcE7WuNc3zO03FtXL2 3cc4tEdvhVahjCvB+wLBoDRkBYu2ws/91rfyoNeLIk/ZU7X0UmuEq72QId3z1hXvcvgj vtTPa9wIjsTz6H7lMkTwopO5Bp2lgCeuGuVJ9uGXXiASJJs1R89fBctqE8IqiPKWFGzb Mlbds6cZOm+e0mje67jHDR1w+m0BUsfAQq0EPxxCBNgDqK6F33Mrq00ebdPEfIhvriD9 g8zQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@identitypraxis-com.20150623.gappssmtp.com header.s=20150623 header.b=S5Ajw5yu; spf=neutral (google.com: 2607:f8b0:4864:20::532 is neither permitted nor denied by best guess record for domain of michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@public.gmane.org) smtp.mailfrom=michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@public.gmane.org Original-Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com. [2607:f8b0:4864:20::532]) by gmr-mx.google.com with ESMTPS id u21si447992vsn.2.2021.09.12.09.38.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Sep 2021 09:38:57 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:4864:20::532 is neither permitted nor denied by best guess record for domain of michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@public.gmane.org) client-ip=2607:f8b0:4864:20::532; Original-Received: by mail-pg1-x532.google.com with SMTP id u18so7140759pgf.0 for ; Sun, 12 Sep 2021 09:38:57 -0700 (PDT) X-Received: by 2002:a62:2905:0:b0:3f3:d4ce:443d with SMTP id p5-20020a622905000000b003f3d4ce443dmr7260679pfp.44.1631464735876; Sun, 12 Sep 2021 09:38:55 -0700 (PDT) Original-Received: from [172.24.1.119] ([98.47.62.174]) by smtp.gmail.com with ESMTPSA id 13sm4397254pfo.98.2021.09.12.09.38.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Sep 2021 09:38:55 -0700 (PDT) In-Reply-To: X-Readdle-Message-ID: 7b04a65e-ba3a-48f6-abce-1532c47b90a4@Spark X-Original-Sender: michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@identitypraxis-com.20150623.gappssmtp.com header.s=20150623 header.b=S5Ajw5yu; spf=neutral (google.com: 2607:f8b0:4864:20::532 is neither permitted nor denied by best guess record for domain of michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@public.gmane.org) smtp.mailfrom=michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@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:29224 Archived-At: --613e2d1e_ead6f57_884 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thank you. Found the error.=C2=A0=C2=A0I your approach to break it into a s= maller file helped. Was missing a tag. Michael J. Becker CEO Identity Praxis, Inc. michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@public.gmane.org M: +1-408-242-5733 https://www.linkedin.com/in/privacyshaman/ Check my availability & schedule=C2=A0meeting with me:=C2=A030 MIN=C2=A0or= =C2=A060 MIN On Sep 12, 2021, 8:34 AM -0700, John MacFarlane , wrote: > > 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=3Dmedia"" but I can't figure it out. I've tried vario= us > > combinations of this > > > > --extract-media=3D/Users/myname/pandocSP/media/ > > --extract-media=3D/media > > > > > > Does anyone have any tips on how I can debug this? > > > > > > Michael > > > > -- > > You received this message because you are subscribed to the Google Grou= ps "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/ms= gid/pandoc-discuss/587134c4-83b5-4983-b329-3f3c1da7913dn%40googlegroups.com= . --=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/7b04a65e-ba3a-48f6-abce-1532c47b90a4%40Spark. --613e2d1e_ead6f57_884 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Thank you. Found the error.  I your approach to= break it into a smaller file helped. Was missing a tag. 


=
Michael J. Becker
CEO<= br style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" /> Identity Pr= axis, Inc. 
michael@ide= ntitypraxis.com
M: +1-408-2= 42-5733
https://www.linkedin.com/in/privacysham= an/

Check my av= ailability & schedule meeting with me: 30 MIN=  or 60 MIN

On Sep 12, 2021, 8:34 AM -0700, John MacF= arlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>, wrote:
You shouldn't use --extract-media for md -> docx (but do use it for the<= br /> 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 <michael-QF1XyMwE1Uwv0rdu9s6TydBPR1lH4CV8@public.gmane.org> 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<= br /> clearly wrong with my extraction path "

" --extract-media=3Dmedia"" but I can't figure it out. I've tried various combinations of this

--extract-media=3D/Users/myname/pandocSP/media/
--extract-media=3D/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 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/587134c4-83b5-4983-b329-3f3c1da7913dn%40googlegroups.com.

--
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/pando= c-discuss/7b04a65e-ba3a-48f6-abce-1532c47b90a4%40Spark.
--613e2d1e_ead6f57_884--