From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32807 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'William Lupton' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: Inserting attributes into elements Date: Tue, 13 Jun 2023 22:38:18 +0100 Message-ID: References: <76a72c07-6699-d243-ae20-64808682ec9e@meddatainc.com> <90C7A30F-C0FA-49D8-B0CD-6521B58113F1@meddatainc.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f9c58105fe09a74b" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36054"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCS4HJ6WSAHBBWGDUOSAMGQEBTSM3NA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jun 13 23:38:38 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f62.google.com ([209.85.167.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q9Bin-0009CR-Dm for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 13 Jun 2023 23:38:37 +0200 Original-Received: by mail-lf1-f62.google.com with SMTP id 2adb3069b0e04-4f6275fdb9esf4560258e87.2 for ; Tue, 13 Jun 2023 14:38:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686692317; cv=pass; d=google.com; s=arc-20160816; b=v5xr5pKBj9TJmZG7Ak7uZvnnTHRwZTGruOeOMRYbrtfrBDLKLGpCrujuaYzQG/EOdr VM0X7DbpMqR59g2cuw5zw5qhgOT1/HIdwx3K9hKkr7Wyc044mPe6/7fMIpzfb2oNQIhj tfAMdUw6SUyM+SOKUyERPqSmgqjPNTnXauquk4et2uGM+oqyjeOLMfiukYZuZRK0X3zC zkzIZTdNFj/Ulslo8N7f7og1Ps2XNaD6IRYhEbN9l46GOS8kko8QAFBHN4y7jBMylq4m rPEeOjiLKa8wRvTwCfbbHMSLlxMD5ZhwBy4AMtEYSPVAlW8oOZZZwf8ajC74j4Yaa8gh 0B0w== 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:in-reply-to:references:mime-version:dkim-signature; bh=u0573m6Wx+r5asmUBhzroTu7VHKtm+zq7R+PSRjlhsE=; b=UhCcPXQuOgduGnnGaWoBNYeDOfZbdbr6l2vxD1kUXyiM9AKwcCf6DMkYLN6+xpqd0i p/5eQAPrVi0bNsSiXfNf3pfzlzFrEoWbGd2JEodFHKagrKyAIbsA/151UtJbwX4e2qIU RP2nnKXo91ZrMMn28Jk62e4XwbGHqwKxClGmhwu/W+u43nb0wNq7GS4JCF2E9f1gFwAm k9c2JVgOyoRoibOwIzIufILk20TvKSzQvMGlewVTZMtUHZUsaaxtjWLOaiE5h5sca8N2 t8vnfDJQiHlASEDVco6XoUrCCZQANLJ/M1aqmToZLiLpDNnOaMErM0naotPSTqLvrEm+ YZCA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=Kipbq1bd; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::62a as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1686692317; x=1689284317; 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:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=u0573m6Wx+r5asmUBhzroTu7VHKtm+zq7R+PSRjlhsE=; b=X1bv1rOIDYdGqJIv4+i8LSLs5sccW/++/avMwZESkmcf7+ND4zbSDhab8xlQWFjNJk paj+7yMRXEtEq85ZUZ4LvomA9qxbrctZRUydXnuvOeomZeydspElMQZ6FiHmZXFBs4DH ucqbl7Bb2IgmwY7LuDJ0jOL7e1T8G/dVX0QJLyKeF9lUiJ9KM/J0ZiLA8vqSzZTy/FPC CQyrcw5pGR1CXmsxCKh8EBz65TjhywMsha+ywQu7ytIqs8+jxdtjKT1anLAKgf7Hr5Zu 5WBgUpmpWQSG9NUSCK8FDfoany5Xd7f+qmYgUHX0XjDKRPAxIS69GKV6PVvrQ1dIia3d Md X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686692317; x=1689284317; 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:in-reply-to:references:mime-version :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=u0573m6Wx+r5asmUBhzroTu7VHKtm+zq7R+PSRjlhsE=; b=lxVjlPt3n8DJC0cg25agSCf8rBodwcplsZjBLyjhjBFPuz7BSYHUt5JnK/ggHrCMyb iN/rq33dd9Uei3ZS9Qf7v93s9pk5byMEFIQypmBcakUjG702E0m1Eghi5qOhW1zlT+tx Qgdx8QYZfvWj52LDI/p3pENy2c88PHf5RRjfFsH8WdI+WTHyzNzOZKvUg3eCvYZYqnp3 KW9nluU/Ey5ytL9a4JPnrZS4Z5jlTm5ayG+Vk+o9nXeqzwKVnklMg/WPAbPJsqnHyfQ3 5yhME2jGAp7mo X-Gm-Message-State: AC+VfDz7M79mQTEBZrlPxuwWmL07OY07LHrzgTyvr9G4zLib/RzcEbsR rHhQMBqFq+MUeQGXQGXLevs= X-Google-Smtp-Source: ACHHUZ4vNSw3Nc7TtP1fjIPvlBYTtan6I09vret4keT0zLOxKVnd2jD30xTc4Vn0UPWudDsmduDVRg== X-Received: by 2002:a05:6512:3119:b0:4ed:bdac:7a49 with SMTP id n25-20020a056512311900b004edbdac7a49mr7008953lfb.54.1686692316534; Tue, 13 Jun 2023 14:38:36 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ac2:5b52:0:b0:4f1:422a:cbfe with SMTP id i18-20020ac25b52000000b004f1422acbfels1078911lfp.0.-pod-prod-08-eu; Tue, 13 Jun 2023 14:38:31 -0700 (PDT) X-Received: by 2002:ac2:464d:0:b0:4f0:af5:5560 with SMTP id s13-20020ac2464d000000b004f00af55560mr7723739lfo.19.1686692310901; Tue, 13 Jun 2023 14:38:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686692310; cv=none; d=google.com; s=arc-20160816; b=ftDiKDnjmi5dpnUSCb1WOaVihoGF7niXNRaSewBb5XGMl1+mQ1sKSsun4aoNQZCoi1 N3XS71j8ZHy+vypEQIv4XUrNM+aKBCRoQySqupAOBtto2dp2dVN1qYS5+U8t+j6n2OAV jQjbX85ScLWbKqowlGTp/2i2G67p11nf+PSdrwvc0BHzJEVEsVoAw6bJ4pr4FXC3FpmD kyHYgz44aTQGtfCmDVxDPXAAa4EFEJx8s03/BaE6eBEBi+tRhgEB0QR1/SJAHSLwt8gP CAWjytamDrpKExV7qnAQvpFeG6BDoMlmCmPcpPx5AG3x06oRz0dSs2v2lhCpAbFiVdpL 9R8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=fRypv4L1xaqKTnP7Z4N/Cg49mPOVkgLzyKqo5UeyhdM=; b=nVc28Y7XlKbfjkyOjNK1eVvuqItAW0fuF74a+YF/BE8lHP/ZOYbhF2UzXn+AzgN9xN vz4rZY7vSevp6ghjDD0X5biMu3I8/nVx7qT4M5ijgoUetxUfnueuux+noFZ8MUno6ol6 8dP1YvXi1RFk9e/M4FxLTMwFEDGpUrxAw7AGHji64OwrPj0AoWtj1/n3XOEGXKrc3a7v cYz09Cs5iG5OAX1lvbublY2SMY0yfFzDl8WzrlMk0TZsEIFGK7QDHiOktQxpmOo28rgO yeo5+TxdseHjrFl5BALRH2xncSvbGKHxlx8EbsiXd08xY8X+vpnMi3Lunk5Gres4Obz3 5Vog== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=Kipbq1bd; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::62a as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org Original-Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com. [2a00:1450:4864:20::62a]) by gmr-mx.google.com with ESMTPS id o12-20020ac24bcc000000b004f175e991fasi824643lfq.13.2023.06.13.14.38.30 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Jun 2023 14:38:30 -0700 (PDT) Received-SPF: pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::62a as permitted sender) client-ip=2a00:1450:4864:20::62a; Original-Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-976a0a1a92bso5344866b.1 for ; Tue, 13 Jun 2023 14:38:30 -0700 (PDT) X-Received: by 2002:a17:907:da0:b0:970:132f:698f with SMTP id go32-20020a1709070da000b00970132f698fmr13235508ejc.2.1686692309869; Tue, 13 Jun 2023 14:38:29 -0700 (PDT) In-Reply-To: X-Original-Sender: wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=Kipbq1bd; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::62a as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org X-Original-From: William Lupton 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:32807 Archived-At: --000000000000f9c58105fe09a74b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable sorry; i was wrong when i said that i thought that you can't add style attributes (i should have checked) of course the style attributes _are_ CSS, but i guess that this is ok for you what do you mean by 'rewriting' a tag? On Tue, 13 Jun 2023 at 22:27, Bastien DUMONT wrote: > You call =E2=80=9Cinsert=E2=80=9D as if it were a method of =E2=80=9Cattr= =E2=80=9D, but attr is a > key-value table. The correct way to add an attribute is: > > if (el.level =3D=3D 2) then > local attr =3D el.attributes > attr.style =3D 'color: #112233;' > end > > > Le Tuesday 13 June 2023 =C3=A0 05:19:14PM, H a =C3=A9crit : > > On June 13, 2023 5:16:32 PM EDT, H wrote: > > > > On June 13, 2023 5:00:19 PM EDT, 'William Lupton' via pandoc-discus= s > > wrote: > > > > As far as I know, you can't add 'style' attributes. But you can > embed > > CSS via header-includes. You'll find an example of this if you > search > > the manual for 'header-includes' (and you can use a filter to > set the > > variable; I think Albert gave an example of how to do this a fe= w > weeks > > ago). > > > > On Tue, 13 Jun 2023, 21:37 H, <[1]agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org> wrote: > > > > Continuing my quest to write a custom filter, I now ran int= o > a need > > to add attributes to different types of tags as exemplified > below: > > > > - In header tags such as

, I need to add "style=3Dcolor= : > #112233; > > " so it becomes

. > > > > - I analogously also need to add style information to > tags. > > > > In my filter I tried: > > > > style_h2 =3D > > > > if (el.level =3D=3D 2) then > > local attr =3D el.attributes > > attr.insert =3D style_h2 > > end > > > > but ended up with the below in my html output: > > > >

> data-insert=3D" style=3D"text-transform: uppercase; co= lor: # > > cc002b;""> > > > > Clearly not the correct way. Can I add the style informatio= n > as > > above in a filter, in the pandoc function as I am going > through my > > document block-by-block and modifying the document structur= e > as > > needed? I already adding
with various style > information as I > > iterate over the blocks and that works fine but now I need = to > > modify existing tags. > > > > I guess I could do it similarly to below but then it applie= s > to all > > eg H2: > > > > function Header(el) > > -- remove header identifier for all levels > > el.identifier =3D '' > > > > -- convert level 1 and 2 to upper case > > if (el.level =3D=3D 1) or (el.level =3D=3D 2) then > > return el:walk { > > Str =3D function(el) > > return pandoc.Str(text.upper(el.text)) > > end > > } > > else > > return el > > end > > end > > > > How to do it on individual H2 in a filter? > > > > 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 [2] > pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [3]https:// > > groups.google.com/d/msgid/pandoc-discuss/ > > 76a72c07-6699-d243-ae20-64808682ec9e%40meddatainc.com. > > > > > > I need to stay away from css since the software the output is used > in does > > not allow css info to be added. > > > > > > Can I "rewrite" a tag in the filter? > > > > -- > > 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 [4]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [5] > https://groups.google.com/d/msgid/ > > pandoc-discuss/90C7A30F-C0FA-49D8-B0CD-6521B58113F1%40meddatainc.com. > > > > References: > > > > [1] mailto:agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org > > [2] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [3] > https://groups.google.com/d/msgid/pandoc-discuss/76a72c07-6699-d243-ae20-= 64808682ec9e%40meddatainc.com > > [4] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [5] > https://groups.google.com/d/msgid/pandoc-discuss/90C7A30F-C0FA-49D8-B0CD-= 6521B58113F1%40meddatainc.com?utm_medium=3Demail&utm_source=3Dfooter > > -- > 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/ZIjfUqabWGUWcZz2%40local= host > . > --=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/CAEe_xxj%3DP-e03Z6A4BbbqyCAdiCgpxs3cGR8WH_P590Q%2BbQkWg%40ma= il.gmail.com. --000000000000f9c58105fe09a74b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
sorry; i was wrong when i said that i thought that you can= 't add style attributes (i should have checked)

of c= ourse the style attributes _are_ CSS, but i guess that this is ok for you

what do you mean by 'rewriting' a tag?

On Tue, 13 Jun 2023 at 22:27, Bastien DUMONT <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org> wrote:
You call =E2=80=9Cinsert=E2=80= =9D as if it were a method of =E2=80=9Cattr=E2=80=9D, but attr is a key-val= ue table. The correct way to add an attribute is:

if (el.level =3D=3D 2) then
=C2=A0 local attr =3D el.attributes
=C2=A0 attr.style =3D 'color: #112233;'
end


Le Tuesday 13 June 2023 =C3=A0 05:19:14PM, H a =C3=A9crit :
> On June 13, 2023 5:16:32 PM EDT, H <agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org> wrote:
>
>=C2=A0 =C2=A0 =C2=A0On June 13, 2023 5:00:19 PM EDT, 'William Lupto= n' via pandoc-discuss
>=C2=A0 =C2=A0 =C2=A0<pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> wrote:
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0As far as I know, you can't add &= #39;style' attributes. But you can embed
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0CSS via header-includes. You'll f= ind an example of this if you search
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0the manual for 'header-includes&#= 39; (and you can use a filter to set the
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0variable; I think Albert gave an exam= ple of how to do this a few weeks
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ago).
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0On Tue, 13 Jun 2023, 21:37 H, <[1]= agents@meddatain= c.com> wrote:
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Continuing my quest to = write a custom filter, I now ran into a need
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0to add attributes to di= fferent types of tags as exemplified below:
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0- In header tags such a= s <h2>, I need to add "style=3Dcolor: #112233;
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0" so it becomes &l= t;h2 style=3D"color: #112233;">.
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0- I analogously also ne= ed to add style information to <image> tags.
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0In my filter I tried: >
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0style_h2 =3D
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (el.level =3D=3D 2) = then
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0local att= r =3D el.attributes
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0attr.inse= rt =3D style_h2
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0end
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0but ended up with the b= elow in my html output:
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<h2
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0data-insert=3D" st= yle=3D&quot;text-transform: uppercase; color: #
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0cc002b;&quot;"= >
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Clearly not the correct= way. Can I add the style information as
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0above in a filter, in t= he pandoc function as I am going through my
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0document block-by-block= and modifying the document structure as
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0needed? I already addin= g <div> with various style information as I
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0iterate over the blocks= and that works fine but now I need to
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0modify existing tags. >
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0I guess I could do it s= imilarly to below but then it applies to all
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0eg H2:
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0function Header(el)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--=C2=A0 = =C2=A0 remove header identifier for all levels
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0el.identi= fier =3D ''
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--=C2=A0 = =C2=A0 convert level 1 and 2 to upper case
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if (el.le= vel =3D=3D 1) or (el.level =3D=3D 2) then
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0return el:walk {
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0Str =3D function(el)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0return pandoc.Str(text.upper(el.text)) >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0end
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0}
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0else
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0return el
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0end
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0end
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0How to do it on individ= ual H2 in a filter?
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Thanks.
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0--
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0You received this messa= ge because you are subscribed to the Google
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Groups "pandoc-dis= cuss" group.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0To unsubscribe from thi= s group and stop receiving emails from it,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0send an email to [2]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0To view this discussion= on the web visit [3]https://
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= groups.google.com/d/msgid/pandoc-discuss/
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A076a72c07-6699-d243-ae20= -64808682ec9e%40meddatainc.com.
>
>
>=C2=A0 =C2=A0 =C2=A0I need to stay away from css since the software the= output is used in does
>=C2=A0 =C2=A0 =C2=A0not allow css info to be added.
>
>
> Can I "rewrite" a tag in the filter?
>
> --
> You received this message because you are subscribed to the Google Gro= ups
> "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send= an email
> to [4]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit [5]https://groups.go= ogle.com/d/msgid/
> pandoc-discuss/90C7A30F-C0FA-49D8-B0CD-6521B58113F1%40meddatainc.com= .
>
> References:
>
> [1] mailto:= agents-FcZObrvlYduBUy7/sJONFg@public.gmane.org
> [2] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org=
> [3] https://groups.google.com/d/msgid/pandoc-discuss/76a72c07-6699-= d243-ae20-64808682ec9e%40meddatainc.com
> [4] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [5] https://groups.google= .com/d/msgid/pandoc-discuss/90C7A30F-C0FA-49D8-B0CD-6521B58113F1%40meddatai= nc.com?utm_medium=3Demail&utm_source=3Dfooter

--
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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ZIjfUqab= WGUWcZz2%40localhost.

--
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://gro= ups.google.com/d/msgid/pandoc-discuss/CAEe_xxj%3DP-e03Z6A4BbbqyCAdiCgpxs3cG= R8WH_P590Q%2BbQkWg%40mail.gmail.com.
--000000000000f9c58105fe09a74b--