From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32814 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: Inserting attributes into elements Date: Wed, 14 Jun 2023 06:49:50 +0000 Message-ID: References: <76a72c07-6699-d243-ae20-64808682ec9e@meddatainc.com> <90C7A30F-C0FA-49D8-B0CD-6521B58113F1@meddatainc.com> <0a6aa41a-fe72-a1e8-2630-ec6070c0bbb3@meddatainc.com> <74253f39-02db-dc2e-2ae1-9d27aaab82ea@meddatainc.com> <61724767-ada0-133f-6751-5884c7460a25@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="37430"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBEOGUWSAMGQE2QYEABY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 14 08:49:58 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f63.google.com ([209.85.167.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q9KKM-0009Zt-53 for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 14 Jun 2023 08:49:58 +0200 Original-Received: by mail-lf1-f63.google.com with SMTP id 2adb3069b0e04-4f618172ed6sf4497724e87.3 for ; Tue, 13 Jun 2023 23:49:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686725397; cv=pass; d=google.com; s=arc-20160816; b=TYcPXBnSgzc5tgIuc09EoxKrbV/XKxTtwt60AdS0Qv8SGn2iZrWsByiyFEvTYaxgk0 36guCyWwALKk7gDpi8zSn083bucnPzZhod64r+hXxIMrLKO1XxDy7CsIVmcaqvZ+bR2Z glIGdNEl63lRp+XmqqYmzwz5oexc5vtbY9eCCDLfPbdJjvLysyaRw0XNzVOyIvOmOrFa da1GrObz6oja7F+1rNEXfWeI081IGqZ+7b4EDCkawQBsHilW9BRtiyXOZHyAYEAQVc4C WyMZZlX7pQlJi2ZINHfdlWOSoNR9XkL66m9lHbPzeBtUYjeyTNrCKGA7Ye6bW7Q63OPe l8Yg== 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=SKnyDdxiyIAJzMPXuBX/hmPeFA0IienLzME2gldRd/g=; b=jUUnc4yx4wB/Ni8nQVUx/3BCdSRPSR1+oNA1+k7gUJx0o23P5D3mLKaJEILD7MzhLc EPZueZfsIfnv8n0dvIICTqbZd8RPQbCAF+boRQdZshOpKRPYJyWltft4FNPfTOrKueDI m1xGteXKz83mEzTSPdEzhkyMUnwl90H6AAHkscHR8GO0W/TscP9JWh1gH+6tqGtJazR+ ylZ/LTn+OfiqR8LPD3fF4DHRxJ/+Te6FOteQ+tQE5rzFAbug4Y/Yfh9bPVzTnFNgyhQg 0iZc0eZgsFxbtlRm6zroj7gnQUVgEPR21ylUzSGq3R0G5jh+B28Hx+kBjP7153ddsUZE JOoA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=sEjDrchT; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1686725397; x=1689317397; 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=SKnyDdxiyIAJzMPXuBX/hmPeFA0IienLzME2gldRd/g=; b=KfPIZRuQgZC0LC1i4G6pKtFgFUiybp3oGpJ1mRafzNpXFLmT2BzDN45uhxVMn6uZyQ 9VAu9gZygEMyn1Yv9ijRYzkvDmR+BW8JgwRHr12UqFTAoGxEY+Ktt8OgEKE/4Hdq6dNc 14fxg+mUmUj1FG73jbRJUusLYhHnKQDF4SOOhtn+9DK/nvIoI+W9wkPY8viBpAKUgbvP fI5E+n/J2fM8Wj8/9APIAe9G4DzBcUgdhgMYOcULE185VX0bO5QyasgEzMPQ48ogO5gy VmAUeo1oYx6SkehKc X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686725397; x=1689317397; 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:x-beenthere :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=SKnyDdxiyIAJzMPXuBX/hmPeFA0IienLzME2gldRd/g=; b=FgNnaJV/3H5isn5a9KGUXpj9kD6ny1J0oHQG0btA1UV/urd3eedVC6ZMWmT+3aV0ke 8QSD45xbcjbVH/o21r2/qFvLwRgNW0ss4dDqYbnmtDL7jNtM4mkl28lveaPbEKPT3/ep V06MeAlx61LD2H2VDnZwFCFTDsvGCe/WmydJ+17nqlEP3ad2MTFIOVhF56+81zUpArkw r8Wl6ST+IPJCMuihrhtfvG3Blbtw Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDxN/TqwRF6OQw5aYRWUCZCW5mZu1/oOR+mXSRvhwUjCdYNBUQzR +bN8F4YjbKPtD2aqrfVX7Hc= X-Google-Smtp-Source: ACHHUZ52oob3dew3SlltfS1qUWvJyrFfrW4tiukqHYYLpvkr4b4EbftCb4F1ijzrM6XCcm16kSgBjg== X-Received: by 2002:ac2:5b8e:0:b0:4f3:b588:48d0 with SMTP id o14-20020ac25b8e000000b004f3b58848d0mr588624lfn.14.1686725396917; Tue, 13 Jun 2023 23:49:56 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:1d20:b0:3f6:f2c9:1a30 with SMTP id l32-20020a05600c1d2000b003f6f2c91a30ls480874wms.0.-pod-prod-07-eu; Tue, 13 Jun 2023 23:49:52 -0700 (PDT) X-Received: by 2002:a7b:c7da:0:b0:3f6:490:a7f3 with SMTP id z26-20020a7bc7da000000b003f60490a7f3mr10918891wmk.9.1686725391979; Tue, 13 Jun 2023 23:49:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686725391; cv=none; d=google.com; s=arc-20160816; b=ZowMBu7Oe4DaSh+hOnmAzqTSScMFdtuDkyIf4Lkv+MaW+6Rebq5wFJtvxIij5dn5yg 1sRdLponWPZQzDRJQhnnWs15rP6fkA6JfTdRZvATqi+uYU6Xd0eCj98ZrlnlFniZuEoQ 8fOhmqstiSqYS9teq1dG+pUc/nN/IvUDPdbFB2Cf5ka4Atb8bXRDN7DIUYcvGFvW08al MFXXehGBAM4OiGggCDdLtBrqcuQuxVGLtrBkzcEDkRLAO8E344gBnVGpNSbm/sldr/Uv NqpllFvr2Ac8QVVU+q4mEnvB27Y09OlecKItoflGi/b1n/YGNf2pm1+9YdRz10cjWCmV pvjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=Mncm33ODc3unWM+V7c2/EjBnq9Yz90v/lnIoDn9bvB0=; b=UPwrKLzwvYD6nNmCoUAYmamDI7DNVzU4w8jUL1Ewmj9/Tu/bOw6fCPsEYlgIsjE6+p K8ThZ9gFmAWtfx8p2VLAy7s7CyK4BC/sW85EPFu8Iv4rW2DvuAOaKQ3mBCrPsvxKCwS3 3FPHX2cDveMCzfbnPxERJBovOmzODs1bNpfhJzlLRwTgXsLXVh97XwOvwO/lCMZVxC7i +eiAror6tGhQ+ruBuUdYCc2KSLhNxjbfcHhOiS1La4VmcLN/usHiZNQ/87oh3vKUARKu ZxG6JMAL3CD+pBGGerBvyeOrlVvRlVDllUOnlm1GqLmqdRUZTMcbS5S0/xTZzpXgkX3T +lXQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=sEjDrchT; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout01.posteo.de (mout01.posteo.de. [185.67.36.65]) by gmr-mx.google.com with ESMTPS id h8-20020a05600c350800b003f734edba72si755112wmq.2.2023.06.13.23.49.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jun 2023 23:49:51 -0700 (PDT) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) client-ip=185.67.36.65; Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 79E60240027 for ; Wed, 14 Jun 2023 08:49:51 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Qgwyl0tN7z9rxF for ; Wed, 14 Jun 2023 08:49:51 +0200 (CEST) Content-Disposition: inline In-Reply-To: <61724767-ada0-133f-6751-5884c7460a25-FcZObrvlYduBUy7/sJONFg@public.gmane.org> X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=sEjDrchT; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:32814 Archived-At: You can learn which elements have an =E2=80=9Cattributes=E2=80=9D field fro= m the doc: https://pandoc.org/lua-filters.html Le Tuesday 13 June 2023 =C3=A0 08:34:05PM, H a =C3=A9crit : > On 06/13/2023 06:53 PM, H wrote: > > On 06/13/2023 06:05 PM, H wrote: > >> On 06/13/2023 05:27 PM, Bastien DUMONT wrote: > >>> attr.style =3D 'color: #112233;' > >> Wonderful, many thanks! Btw, I was reading my email in the reverse ord= er or I would have found this before my other post... > >> > > How can I similarly add a style to an tag? This = tag is wrapped inside a
tag. > > > Besides adding a style to (Image) elements, I also want to add = a style to
(HorizontalRule). It seems that the following does not wo= rk: >=20 > local style_hr =3D 'border-top-style: solid; border-top-width: thin; bord= er-color: #cc002b;' >=20 > if (el.type =3D=3D 'HorizontalRule') then > =C2=A0 local attr =3D el.attributes > =C2=A0 attr.style =3D style_hr > end >=20 > The desired output is: >=20 >
>=20 > Pandoc fails assigning the style, however, adding the code to the html fi= le shows it is valid html code. >=20 > Have I missed something or might this be a bug? >=20 > --=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= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/61724767-ada0-133f-6751-5884c7460a25%40meddatainc.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/ZIljDhAA-th045Jn%40localhost.