From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32694 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: H Newsgroups: gmane.text.pandoc Subject: Re: Wrapping sections of text with
in custom filter Date: Wed, 24 May 2023 19:20:05 -0400 Message-ID: <93e5b610-66a2-6ac7-1d53-8a04a8314249@meddatainc.com> References: <2fc450a6-5a16-316c-02c8-8ef055bccd11@meddatainc.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11227"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 To: Pandoc Mailing List Original-X-From: pandoc-discuss+bncBCEIZSNSZ4IRBJ5XXKRQMGQEOFURIDI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu May 25 01:20:11 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-il1-f186.google.com ([209.85.166.186]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q1xm6-0002gl-N8 for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 25 May 2023 01:20:10 +0200 Original-Received: by mail-il1-f186.google.com with SMTP id e9e14a558f8ab-3318938ea0bsf7757575ab.0 for ; Wed, 24 May 2023 16:20:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684970409; cv=pass; d=google.com; s=arc-20160816; b=Yxszy9mCbRdAjGsmoBjI+tH0+LDjqcN9wqWSFr3GcjOGiOK+qYnZKn5l+Q6iEqOQ7t MAW+R+sXLp6HFQ1b/cWKJxoGAUGXp8zJW0sK3HD2n/eXys4NQ+UJ0WumEvMlCJNZDWjL KZon/e6J1zF+Y2wZRJ129OAVPcLJfPfsnh4Yoj/PKWk/Ho/AaFIlHtfMhZ+hX7JG23J/ ZMwRb12nu96M8fnOy1keaueIMcaFb2gYrFyQHIg9ZeKX66/mnPZ1W3CvjAxJdMeC3YJ4 HjYj+jostVg/Mm/izFP1++QGOgTXD+t6se9bt3pijH3ZFkgLcVS6n5gMZTZgNQdBnrSb F8Kg== 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:ui-outboundreport :content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:references:to:from:subject:sender :dkim-signature; bh=CnBYZQfscjlI6/gPXJzjitSYDS0SxIvVlg2GU9znt1M=; b=P0ZKMepnJrWNmrpetq+VQJ5/YllR13aKmaQjMRUPLelMmqmt9g7tdLLPDR91njbx5e X8yc1gbv4Uu4K8yze1am4KwElBNJ4bcMVLPExiybF2Ra9nIqwsJX5UAhdwa9Put8NbR7 TduDHhRVA0LMhQmTKCBePSc4e3iO81+HNJjcVv8vsrsQv1f5ZjPjnWwN2N8fgafx7DLo 99QgA15bp5rE9VX6vcFGSqdTN33R0auhmYWHWG727hUPrpCGC6p7EDJo4TnWqgCYEoew UMTrV3+31efY/vLhyRs5kAlxrUYzSuJJbgJm8xfWd8LkBDV/8cOHw7sHAYCMaxv8tm6S +r2g== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org designates 74.208.4.196 as permitted sender) smtp.mailfrom=agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=meddatainc.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1684970409; x=1687562409; 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 :ui-outboundreport:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:references:to :from:subject:sender:from:to:cc:subject:date:message-id:reply-to; bh=CnBYZQfscjlI6/gPXJzjitSYDS0SxIvVlg2GU9znt1M=; b=gRGInAcMK4tkhT/eH8kIh9n4Xi3fnQMJid4iFCwQ3HX42OwhdEH4PIagRr9i7cmbr+ +iW60EBljZz2gQ1o4zfpCCVrCOrYdPv+9FeFHpxG6J5R9iyzDMv1nbO3Y8h8vPx4buM7 fBAOVvcWxo7oyIbYM/YZPWtAFdbjDS2erU7MFnpsfzmmMAkB//qispfpxqvxKAN+JxCR zrdAaIGdrJue0Af3MwZbIYDvm5JJwf+LVmyeogwZYR87zM1/g0eo5/M6eFcDD/vIVCjH X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684970409; x=1687562409; 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 :ui-outboundreport:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:references:to :from:subject:x-beenthere:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=CnBYZQfscjlI6/gPXJzjitSYDS0SxIvVlg2GU9znt1M=; b=O2hrq/cA3thL40PHseqTUdBb6ylfvara4zsrHixYTNgSzcxbOV1xB+KLRMhuv8m4AH bFtlJhcCGLf+veUJIWYa2yYaNMGvWZuHeJ8LiGDFwY5KXnzZhD2k3dTWza6vUGTJpd/g to4nwXqROUKfwc466fgO5owclTEAaGp96uTAEZijIewtWe9S+LdfY7H73Q9OP0Wvn4fu dh Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDw0FP7T21HVkA5I7/BH8oMwgRXCEZ92mq4JdOMY+f7wXIV4xBwM u+5R85255nMc4pPLl7gr5MI= X-Google-Smtp-Source: ACHHUZ4GHtjnzgM4mkRhxgAuqbGt6acxeBcMVgnRftqX/6FrRAk3SYtGk8ivJqaPpwyNL0oM8Bkj8w== X-Received: by 2002:a92:c702:0:b0:338:93b2:2378 with SMTP id a2-20020a92c702000000b0033893b22378mr1002303ilp.3.1684970409512; Wed, 24 May 2023 16:20:09 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6e02:1303:b0:337:7bcb:d328 with SMTP id g3-20020a056e02130300b003377bcbd328ls117628ilr.1.-pod-prod-02-us; Wed, 24 May 2023 16:20:06 -0700 (PDT) X-Received: by 2002:a5d:83cb:0:b0:76c:4e1f:df9b with SMTP id u11-20020a5d83cb000000b0076c4e1fdf9bmr11584753ior.15.1684970406703; Wed, 24 May 2023 16:20:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684970406; cv=none; d=google.com; s=arc-20160816; b=ccMoXxkmoCdvvDkIHqYwO+MEpyd+ALXCtFSNhYWLukG47iJhpesTxWX1C3N6OTobb2 o4D0PH3z3hK6ClObCkfCo3iMDYWotogKYAVVzsX5k6zCYikw3RvY0i/FGPBKvTwspu1/ KvbGJ/YF92vtYpK2Z8XMYX4u/qOXbNfYuR72jEgvEXTki8//cJnus86xVuZetVf6gn+w GmwN8f5sUHEXTPqY0N4BgSQ+NRLF7rKDnDR17f0zC2DUM9SGvp8HQfbSJpA66VpvHdQV 4PFx2H2+Lmz4jq3sES6oPbXNzmOvbagUDjxdIR2MveVG6nCEOWpJyHtST+V1cbg6YEv9 8oUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:references:to :from:subject; bh=5nufHH78Ugx/mZAv89HmVC4SYNmJj+AukzpkO+oQHjY=; b=JhHt3qBFZViCK8xL200ckyw+mCydmSEpOTD9eG6OiX4l2MUAvD/UL3pB6l1uuDfIZo 4hXqMO/xcoCk6P/ws1WP8Kcr50i7hfBzPIERehKNZj04NKkKYfXgOoR5ahhC2ODLN0C5 y0PdIL8yVBDr3y8788arsGS+C+fzs4mBz8pG4pY2Ra8hOmz9Vscq4q1/+IKq0BvYTY7j O04HyukIHnPhcw5Drf2OCIi/DnkxnTWZFmoeyWH++dWQJG+hseejs4nCmoQ7Md8Ui4NM 2WE1NTnEblVuXDPefXPVx1uiHFPMxSMucO6uw71oxjm+/KKqWYn4KuXbUlsMlWNiGJRb rWqg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org designates 74.208.4.196 as permitted sender) smtp.mailfrom=agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=meddatainc.com Original-Received: from mout.perfora.net (mout.perfora.net. [74.208.4.196]) by gmr-mx.google.com with ESMTPS id cs1-20020a056638470100b0040fa18f8039si12642jab.1.2023.05.24.16.20.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 May 2023 16:20:06 -0700 (PDT) Received-SPF: pass (google.com: domain of agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org designates 74.208.4.196 as permitted sender) client-ip=74.208.4.196; Original-Received: from [192.168.1.17] ([72.94.51.172]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0Lkw9T-1qaCWm44u5-00aiGD for ; Thu, 25 May 2023 01:20:06 +0200 In-Reply-To: <2fc450a6-5a16-316c-02c8-8ef055bccd11-FcZObrvlYduBUy7/sJONFg@public.gmane.org> Content-Language: en-US X-Provags-ID: V03:K1:C/+wDiwZVPfUR97U9sFa9MvvGD8rd5fR9RK3wGLWDpRy6vyXh/J h7G5kRcTc8BRQOkbtNiWQmyvDeIbwfzD26r3zaVa20C0izAEyi4wiePk59kFb9vy6nCR1e/ UMC/zbbC6nDqcP1+mROgJlM33T7qGZH+6aKsiCRjPy9xprEFsmQGFVbvuLlwo4CT1UvES0n ygRYWWPfWOgFtc1jQZGYA== UI-OutboundReport: notjunk:1;M01:P0:wwM15DQgEzk=;J+THrtiZADLq0SRfr4w3AePEVYR i5wS1WdFjtkiR4dUrnEQFPIMCpL/o9o737yPYFmW0OSDdRhOFa7SWZswqHEUyioZaYPDhOOm7 P1aOfg5rgGhjK0iy6iqgDhOsjtrdgeD40gcVq1PT49urtXIlFMjlH3HswkBT7t7mcAmhDH6aw TxUOUUmyBcX5uEsPmpNG6mwkxN6wvUuyymmRWmnFO0ZP0SeUug1alFLC1hs76Jy9ycoqH60gL xARn95fXJKGjudsLh8iMiOIo6kph10+Z2O0r1qdyi/Nv4PstsImPmWXjbGG/6FN5P/lDZ3KjR vzmc+xquj+qg3XeInWXEha2YaiWUuRrBMPoR+oMasSCEW0pDl31322qZZU0Bs7AGpQarIqhqs R8oC4SyisMkWnMOUVeAXejDUGoLN1JIRI1KeUYREJ8spbGnkLBSk7zpDobr4dfZHmnnjiaOWZ cmx/3qDrPqO4qRG/e95n2neGRJeSuoyPr6WfbnU1opmFZvMVZojpTgP4XaJcw+WEjuMj3tskz uOkAQNgdo97Ic+aO3ELHSHEiEYamdbfaxOZp0sDgLvuchEDQvliWF/6s/UI6kyQPUv1nP9JF1 tfYi/2qxgGSov6LUgEZIcCKfZW/jNPVnsTkSf74KKTQSlG6KRhxW4J/Im0pfDwTSaTMvD+4Lk IFk8XFc6X8dZIFwvXW3up6rBp9fzOWLemfqsvV+IDA== X-Original-Sender: agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org designates 74.208.4.196 as permitted sender) smtp.mailfrom=agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=meddatainc.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:32694 Archived-At: On 05/24/2023 04:51 PM, H wrote: > Using pandoc 3.1.2 and am trying my hand at writing my first writer to cu= stomize HTML output for a specific, predefined newsletter format. > > The source document is written in markdown, contains headers of various l= evels, paragraphs of text, links to images and mail links. No lists, no tab= les and no code blocks. > > The document is structured with an introductory section, multiple identic= ally formatted sections and then a final section at the end. I need to wrap= various portions of the structure with
at multiple levels in o= rder to achieve the desired formatting. Some of the
tags need t= o wrap H1, H2, image, multiple paragraphs, other
tags wrap only= one such item. In addition, most HTML tag need to have some predefined cus= tom style information. > > This output will be manually added to a certain newsletter editor in a CR= M system and I cannot add any CSS information whatsoever, everything has to= be structured as outlined above. > > Since I am new to writing filters, I am looking for some suggestions how = approach the
wrapping when multiple different HTML items need t= o be wrapped. > > Thank you. > I should add that one
pair may enclose H1, H2, image, and sever= al paragraphs until the next H1 tag or end of document. Another
= pair (within the just-mentioned pair) may enclose the image and several pa= ragraphs, again until the next H1 tag (or end of document). There are some = additional levels of
pairs but this describes the gist of it. Suggestions welcome! --=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/93e5b610-66a2-6ac7-1d53-8a04a8314249%40meddatainc.com.