From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32693 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: H Newsgroups: gmane.text.pandoc Subject: Wrapping sections of text with
in custom filter Date: Wed, 24 May 2023 16:51:06 -0400 Message-ID: <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="15154"; 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+bncBCEIZSNSZ4IRBPHRXGRQMGQEQKKHRDY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed May 24 22:51:13 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-io1-f55.google.com ([209.85.166.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q1vRw-0003fX-5w for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 24 May 2023 22:51:12 +0200 Original-Received: by mail-io1-f55.google.com with SMTP id ca18e2360f4ac-763da06540asf232983839f.3 for ; Wed, 24 May 2023 13:51:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684961471; cv=pass; d=google.com; s=arc-20160816; b=qraJ/B9PINpLsuXkwoZPUxUbTpmyawFKycR2VTcGfwkF2ekKGnx0/DCp3GQqa8FOSn bwXk3vuhiHaKrsIIXCEfCmUKNbZ0jnkuuw8RcGI2DzI1TVkp1SvHLF7wuVQrnp8SJtqH /lCyI5r96AKlSLc3jpP0GN1czBEIw/E6os4L3tmP9VByOlbzoTNBveDXIaRvYl8S60tG rHPKLVwqXkWQKiDcPyYgiOzkg0Y68gJu/rcISRIg8vTk+vwknBvTHH2HK8uuliqKSpoT XOwIJxVTVTsPQYZqkfl+f2G+3w9FxQlTmRmx/eyg8eFH5yi2B5aPaYUrP91QUBD5XHH2 TZVw== 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:mime-version:user-agent :date:message-id:subject:from:to:sender:dkim-signature; bh=VfmCyiSodNc3p3rRdLmIKgL3dJ/rq1NJe1p4CcQVYYw=; b=TkMhHDjXUp111hMvP3W+MQ9gub6HtcxXxGpgkDZ3FYWBVGDifMIzjQeXGrc2xN+v8C w40P6HKElTFUjIbH7d5GA2XoJvWdZFZ7CksTBDRRnRdSUxY1FWkSEazlGzcir+LYlIei JI2ROozJ63y4RtexiDdTM12iHnGpkQXSbJHIf4BuZnTvJaEasCRSz3pjkdXq0N6rsrpU O+H/lkf77u4J5af7yg9G8ejAJwnaj8FVVwVclqXyVLhSFApPifwqaJJwejeugADZNZeb 025TW7F6yhtVxQUuXA95kHq0zsB8SYyw0i5Kn1vP3EdpkNsIwltL2jPwCe31RYfT2Enf 50nQ== 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=1684961471; x=1687553471; 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 :mime-version:user-agent:date:message-id:subject:from:to:sender:from :to:cc:subject:date:message-id:reply-to; bh=VfmCyiSodNc3p3rRdLmIKgL3dJ/rq1NJe1p4CcQVYYw=; b=deqyurrXQDrqNg6uLSgf1vSkee3aaC+H442zGOhwYj424iV7oDsuenz5gZ/iD/NkuL H/Dci1NkCDQ5jas7rTPgSOX3oFidvzCajV0kcK/IC8BPUCGsqX4IARcsQ0yy/0inAdRW aww+ek5ES5x9aXQGFFT3qKVM+iHL3lVyqH3zy4LUqThCGZiv4LDtpinpyKri+2nmhiNt EWCYmMkp0Nod0s2t+9HJvCIC0L2hPrwUaG86QWD9lSRasm7g0kGCmXjCWpPkwzoYLE4k 5ywys9GYFuq+ct X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684961471; x=1687553471; 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 :mime-version:user-agent:date:message-id:subject:from:to:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=VfmCyiSodNc3p3rRdLmIKgL3dJ/rq1NJe1p4CcQVYYw=; b=VDlqwHef4BP5mlSxO90AH5btUpEmO97IdK1RMfbhPo2GsY6/V/slrnr4KcMoLdDWm8 nS+63Lb3Lbs3ItqSdycIQyvxf4q/O345H1f5kAcDSODH57w94F+8rcHawFmW5eHjAn/Z ppUC+wEW2CJzjRdu6lAEYczaMxJzYwMkNGGbju+xbWipnHbMA2AJ6HoFcqKZl4VRkO0P s0gUZ64L9jaFNdcGISInpnfVA Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDxJkHuUSyOiF+kmtYspzBgmDDisdDR9RI/bYv1GYpGHqBY+as5s BZ9YBizJxA++X9FGfPYEa+k= X-Google-Smtp-Source: ACHHUZ5dHfCsKb/M3bdcfSm3T+RHYmX00E5ps8nmDSBAANwvewtnnZLvbOLH1+2ThE3eK/NexXvl0A== X-Received: by 2002:a02:b04a:0:b0:40f:9993:5b05 with SMTP id q10-20020a02b04a000000b0040f99935b05mr9612507jah.1.1684961471103; Wed, 24 May 2023 13:51:11 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6e02:2221:b0:335:682:1dd6 with SMTP id j33-20020a056e02222100b0033506821dd6ls33648ilf.0.-pod-prod-00-us; Wed, 24 May 2023 13:51:08 -0700 (PDT) X-Received: by 2002:a05:6602:381a:b0:76c:e93a:e2a with SMTP id bb26-20020a056602381a00b0076ce93a0e2amr434699iob.8.1684961468231; Wed, 24 May 2023 13:51:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684961468; cv=none; d=google.com; s=arc-20160816; b=BcbQGXvAODUSz2L4XuxaR7BkAvlYbxbsWkLmOAhfXB4dsdC0fhj/BuB03uiGUb56qe t31/Vp2hFAx5WmU3dijbcQ9RtZxlBAbQ8yx+GsEk5UJjPQBR6+deXrJJlrordFiURRDq kHTUvyJsg/Abjo3b6Y6F1oHzsbuXrouWoAZi5zxBiGiZxjVH2rDUHvxNwd4X++jk1F0B 5zqbjwtpAOg7Bxt+2YV2Q5RatuR3YWrtadsc8BKQOhFN/MEMk6A98P4RGW5W6CTCCr6I VsljKFdF4qTLnSiWYUdfpkZ+zGsjcKG8U8hpCQvC7yCS2abKh4DJmmobHOV4QlaLsy4M jHlw== 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 :mime-version:user-agent:date:message-id:subject:from:to; bh=JXf4LbAcGPm9gafM8sJWJav5bfvK22h6BIQPSBISPYQ=; b=wXvzP9p/hm32dKzvwp8kPI94wTCXYzDFdAWDHt3vySVoPg0No5aOGaeULcP4fis08m QqFUPbp4MlYsjWJ6dR08BwAxquDGursIADqUa8WrRegAHFXUzq6gRdviEgGAxZke13V5 jQ98kXSgzBauXnI/9MRfCZjYsotHPyw4qLUS2J7p8fRhXIpQQ2skQha8G2YGjyakePAj FW9RB5lUH8Yo2qOIc9YkEWSKlM8Of40HQPIuyS7L/DQS2IDKSeQvnm+vRtVyjsGOHZab QgsWkKickditvSfddSNeEyegWHI+a2snxMalSNAQQpCae1RPsX6D0GeHhsY2S4cJKglr YuJA== 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 a1-20020a056602148100b007748ad04e82si496917iow.0.2023.05.24.13.51.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 May 2023 13:51:08 -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 0LdHBn-1qShbu1NcP-00iS0z for ; Wed, 24 May 2023 22:51:07 +0200 Content-Language: en-US X-Provags-ID: V03:K1:ozrnAzEB7A/pLMOQa9tw94iiQeJY6mhPCfKCRe+V4C+CSC6ELN+ MdVUviieWKxrLKZWvGuvrQqKzUb0qDQR1Zx9Tv53ls2i3uQrTopSuzEAo6oZYvzeU3sjoLk NqKcTaYgVEr0mGxUhYTQQgJeqwroLr63gysStrriJvoZn7FBMjUHwndVLo+sjNii4z9Advb WrMRcBtc1ajnS9RZ5i4zw== UI-OutboundReport: notjunk:1;M01:P0:iG8DyOWfwpA=;6ErZSw0+Rm3J/ccSO6jjL82EyQI lchQ9rLwya05v5nZxCDAJvPkrFe2YOLxK5geRi4eIpQNzIVWHfE7xbjR84+ETAOi1BYd8rE6B s+qm503XStSwbCK0LSFTcVdu2aup8X+ZY+Y2AJDIqP+LUiRo0iZDP46WhzJhSHo93FMxf2aJn KY8LvtI9plo6rN8rwe6sJIzDLFGDmDho5dKpusH3hXCu+vTBYnT7QluNQfEONG5CUc91+kOYd MqdBLpWIRV/vB1Ve2oWoogwC0hLGH3kT+LDBACnKVenihwEawQeTWgMLnh1gMhOlL6l0OB9Qk i1LcXSccd+bgMERrEHZ58H6KS47vC6Z0POQPJm65H1sJbwj6eSX/OwViaAJoHumruFv6qftsZ rMgYr2T2n3vrMyxzavQ4JAunyN89xVOVeAIGbbZOm++S/hVswXnlmQSF4o4M70+9w8M9nurdv N4B5W6iPHuqYbPhtaP5c26YVNOxl1LvtlhLraWyy61cqoo+LNhnGBaybMw1LoYfv2pJCwMDmy Mmd5fkzvOriVHWmzIJxQFXjqS4FpCRHnupxBSEtEZZnuKn+2NOv0HdCACYH41UxUsfoVjmzKt mmO5lRxE0OolMZTguvW+xU3TKB/6hR9pTreeUy57SERLPoUfuVu23tm+GcvHrqTQ0SiZ5giBQ WLkGWwCkwF6j19CDgjMLnnoWgNvP+jYGGlqvwu8WIw== 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:32693 Archived-At: Using pandoc 3.1.2 and am trying my hand at writing my first writer to cust= omize HTML output for a specific, predefined newsletter format. The source document is written in markdown, contains headers of various lev= els, paragraphs of text, links to images and mail links. No lists, no table= s and no code blocks. The document is structured with an introductory section, multiple identical= ly formatted sections and then a final section at the end. I need to wrap v= arious portions of the structure with
at multiple levels in ord= er to achieve the desired formatting. Some of the
tags need to = wrap H1, H2, image, multiple paragraphs, other
tags wrap only o= ne such item. In addition, most HTML tag need to have some predefined custo= m style information. This output will be manually added to a certain newsletter editor in a CRM = system and I cannot add any CSS information whatsoever, everything has to b= e structured as outlined above. Since I am new to writing filters, I am looking for some suggestions how ap= proach the
wrapping when multiple different HTML items need to = be wrapped. Thank you. --=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/2fc450a6-5a16-316c-02c8-8ef055bccd11%40meddatainc.com.