From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33130 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Graham Ward Newsgroups: gmane.text.pandoc Subject: Converting selected sections of a html to docx Date: Thu, 21 Sep 2023 22:28:11 +0100 Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ef3bb80605e52c18" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22392"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDZNHSXTYYARBC7LWKUAMGQESPLBDUA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Sep 21 23:28:48 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f191.google.com ([209.85.208.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qjRE8-0005bl-JB for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 21 Sep 2023 23:28:48 +0200 Original-Received: by mail-lj1-f191.google.com with SMTP id 38308e7fff4ca-2c001029f99sf17049461fa.0 for ; Thu, 21 Sep 2023 14:28:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695331728; cv=pass; d=google.com; s=arc-20160816; b=h00W7NQpLa4yBo023WFFxk9sLGTjjn08Ajr/4jhoZC+Xsy3sg8MmyeUk1LJ/wfGmif GLjlSIIEW61fr1VReSJUxCOVFaKOFfRF8OuyJ9nM2e2meIRuRkylNKeBl8pDq0PF4rNw LwiYZ6IRK3IPZ2F6dJrJu0yhVgXusK4cdvVQWyeBTJEuLoKeli0Mbok0FHX77iVE7BDy R7e6twpuzf6+nE8pWHEqOVONUZbsL5ctQi1rb7GkybOztzOkRw1Zu33jEQWQMReviJRz QuNrDSjMbeXE54D6k6+O0yS01DX689wCMYNiyxEo07NfYOXrZLcbPM23XeeRMN8R1PZq IHyA== 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:to:subject:message-id:date :from:mime-version:sender:dkim-signature:dkim-signature; bh=Bq0eAVcsE9RZCgSGE+RDXf0X6lRKxW/FBKcEvi1rKpA=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=I47xr5SaMTwfcspOvObghh3e4CA7aEZQJilGAfLJy7ZyZeVdesqGSjBT+kK0MM6LnG CwP4fIem2+AwQiKYgqLHUaHC9rr+r3+KgX/TlIgUIL+ppnda0vtRJzTQ8AMuiHlXuqaM tULPQeCz5dqtyRi/qL7rDHbBnAV9gvBcOxQSgJGgai7g4YXfW4zsSaomt5HB6vEsHh0y Vt6VTmLMQRAa/Da2IBd4lAs23tvpKajkxH8UPzybjPkDogXsDbH0aje4JABM5utXUA4W cU2e+f/SnOMoU+Ju2Otfkagyx/KIJTrPE7IWmrE/l0d4Kf7aXugss+TQZHqEPmGFTUB7 8CvQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hw3+GCKm; spf=pass (google.com: domain of grahams.ward-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::62d as permitted sender) smtp.mailfrom=grahams.ward-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1695331728; x=1695936528; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:mime-version:sender:from:to:cc:subject:date :message-id:reply-to; bh=Bq0eAVcsE9RZCgSGE+RDXf0X6lRKxW/FBKcEvi1rKpA=; b=Ki2u6j4amgd7neHiDYfDhlGUqVRW15Z/Me9ppvl7sJnKfsFVA40FnNETtr3Xqt/bN8 MAgnZbTWAUhUs0LlZ4fVf2WZfqcBEGqB5ixCa4P6rdyOtyOQcPqCldV4tsUWewGChEG0 4M3IIH33B8JR67O+HyUp51FEqvFSPgsbOZwZujwuqR3dNeOOGlnL3bGpyBm/Wr4dRquT pb8LqjdzRD9DL0BiKxg+GliydOT17BzSlRqGAI37zgxy1dR1nlnSxw8aPAVMdjhFiGot IqQFoSdaCvH3RY2PU48xR/E9fJMRZpIFnhgTM4OCvpTTa8MbWUybI+QtCGStLGaeMsd1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695331728; x=1695936528; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Bq0eAVcsE9RZCgSGE+RDXf0X6lRKxW/FBKcEvi1rKpA=; b=LZgkl0KD4pYijgiOWG0IwOAaK7ChVXuz6BRYF1xD8YlJk743fzrxtAr7Mj3IDFudby aOvkw3Z1FJVATgJ4QU5yab2BKLgd5XLmiiRpyA7z2T73o7lhF2pq/DhzfqQcNdsGybEK AGC8JbZiGjbg+GxEzO42PfM1ovRi1PPf0vkCFDnxSSdlzV6hNeaVMrvO8Y5CggzjUC3l 1zr36nj+NRLxy1vSteRSlIc86Ptzkeq5pkpmFurNeQVBTQq6AAl4CUMvUCyIfQeyukqH 0qkF+gOkCpFHfcYM2Bb1IzRRMPU6ZFrsyQ3YcyEj71hL7LIK9gvmMVi3EhDBvswP/ZWr rY8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695331728; x=1695936528; 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-authentication-results:x-original-sender:to:subject :message-id:date:from:mime-version:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=Bq0eAVcsE9RZCgSGE+RDXf0X6lRKxW/FBKcEvi1rKpA=; b=bsvo7OrJegF0Cn5n0CCJWnxgEWSdx/yvQlPFBDXiQCIWl1cKp+oCa1CT3H7QjpEPJj qG+L0yUed5oEcYIrrYWJVMkLyzwRYKoMhkacdGgXFskLd90JwCwNvsxkJm13l+5DLZE9 BUeaNLVZiCsbJmDF+VhGxv1o3HHqyJdCGrEBv1ldIJOAP/GAw2iktOTEwkklPkNk2VIt F89zO+VOP6P/rrqPRE5t94GjPoZp/k/t41L0nnbzzKtO8Oz0Kv5YYowl87yLgG0U0+6b KzhOeU8uX4wDpRAqX+MzIuPg4xwx4EntN75E7G+ Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YysiYZ6Qf6y4sTjUjMQlAHndplgHJI6th/tr0iGcOJhZzdqUkUE IzVyHaENRKfdC1gLrE/VSlA= X-Google-Smtp-Source: AGHT+IGffc+50my/wthJz3mZw4pMEjreUmGk5EY3LaerHP5Jsl3MnbXZ1wCBwtebXSDgqizEHKJE9Q== X-Received: by 2002:a2e:3a15:0:b0:2c0:1673:53af with SMTP id h21-20020a2e3a15000000b002c0167353afmr5990180lja.14.1695331727615; Thu, 21 Sep 2023 14:28:47 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a2e:a4cb:0:b0:2b9:6157:a29a with SMTP id p11-20020a2ea4cb000000b002b96157a29als258281ljm.1.-pod-prod-02-eu; Thu, 21 Sep 2023 14:28:41 -0700 (PDT) X-Received: by 2002:ac2:5def:0:b0:500:ac76:4a61 with SMTP id z15-20020ac25def000000b00500ac764a61mr5236658lfq.65.1695331721537; Thu, 21 Sep 2023 14:28:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695331721; cv=none; d=google.com; s=arc-20160816; b=lovD5JsiKRo62wnnwKBt05F17St6KVwIzxF0hpf+ixcTf5QkFLs+92QV+PuTVbdHEK rqbxKwXijuJ0ITrVXWqGlb2I9bH2sLuwh3IehueH3hkK3oTo2F9ZoHTkZQ7HjQ6c3+X+ uw0Y5FaInVw08GYnR9bmc7YBS+g5aOGYvD7O0mUS9udT+KOwBuYrstUYBfDvs5EF54BW neUnFHspFpBRjHYJXO/AHbsM0+AIPPpWvF4rv9Xrvh5ERYuRiR4CmK1XlDTImrsNghUc DYlSMa6AXYYITNBspXPsI/Sbq+KKwM81YyVCVrU91nBHJNii3rIxaWbPwNuppgQl7t2x qZ/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=XRHEJrRsdwIME9arxJJD3Kl2DKmia0HNge9sJcIX6rs=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=jlzNxs8sC23js7W5+g+WtfkoPrBMrroetFLBMLeqCA2n5vmlzfpnmtnPQOEzjUiEOV K662tQDGPHBfi9VivnyLOhvAffAN+dFPoGUWMma2aEWTdae0bDqDXc0VCVmo76V0Nb/d G8Ht8gD0JNpDSeJCWq7XgzU9AH4klWBUA+Q/179YczCoqDARPPVBNMmYUV2bBfkKnthJ L7OCEOwv5BgHfUXQeGkTxcIBBKN0QWfPtpWrz2cW6ujoqIC5HlGKCJzF7GNukdObwPtc wFJR7tasXYx/gmVKrb/QB/J6FkHseIfoCQWJC+nHqTdNr0THMTfwQkwAAcVjQB05NXUF bfpg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hw3+GCKm; spf=pass (google.com: domain of grahams.ward-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::62d as permitted sender) smtp.mailfrom=grahams.ward-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com. [2a00:1450:4864:20::62d]) by gmr-mx.google.com with ESMTPS id bi35-20020a0565120ea300b00503ce43f46asi90220lfb.11.2023.09.21.14.28.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 21 Sep 2023 14:28:41 -0700 (PDT) Received-SPF: pass (google.com: domain of grahams.ward-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::62d as permitted sender) client-ip=2a00:1450:4864:20::62d; Original-Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-99bdcade7fbso171083166b.1 for ; Thu, 21 Sep 2023 14:28:41 -0700 (PDT) X-Received: by 2002:a17:907:7884:b0:9ae:673a:88c8 with SMTP id ku4-20020a170907788400b009ae673a88c8mr2563559ejc.21.1695331719787; Thu, 21 Sep 2023 14:28:39 -0700 (PDT) X-Original-Sender: grahams.ward-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hw3+GCKm; spf=pass (google.com: domain of grahams.ward-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::62d as permitted sender) smtp.mailfrom=grahams.ward-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:33130 Archived-At: --000000000000ef3bb80605e52c18 Content-Type: text/plain; charset="UTF-8" I routinely convert html to docx with this simple command: *pandoc -s input.html -o output.docx* However, I now have a requirement to only convert parts of the html file. The html file comprises of various sections inside the including
and . I only want to convert the content of sections. Is the approach to create a template file, if so, how? Thanks. -- 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/CAE%2BryqvbzD%3DL7awSKuUGejdocXqxCp%3DSdeZ%2BszWxdWCEU1ULww%40mail.gmail.com. --000000000000ef3bb80605e52c18 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I routinely convert html to docx with this simple command:=

pandoc -s input.html -o output.docx
However, I now have a requirement to only convert parts of the= html file. The html file comprises of various sections inside the <body= > including <table> <div> and <span>. I only want to c= onvert the content of <span> sections. Is the approach to create a te= mplate file, if so, how?

Thanks.


--
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/CAE%2BryqvbzD%3DL7awSKuUGejdocXqx= Cp%3DSdeZ%2BszWxdWCEU1ULww%40mail.gmail.com.
--000000000000ef3bb80605e52c18--