From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32223 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: Can math elements have attributes Date: Thu, 23 Feb 2023 09:30:32 +0000 Message-ID: References: <0845b275-aa43-4fc3-86a5-17b20de652een@googlegroups.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="22908"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDCINCES2QJRBO7E3SPQMGQETTXFRPQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Feb 23 10:30:40 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ed1-f55.google.com ([209.85.208.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pV7vz-0005n0-9k for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 23 Feb 2023 10:30:39 +0100 Original-Received: by mail-ed1-f55.google.com with SMTP id g24-20020a056402321800b004ace77022ebsf14145065eda.8 for ; Thu, 23 Feb 2023 01:30:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1677144638; cv=pass; d=google.com; s=arc-20160816; b=0/i6sK1Q+WVdtsWOpTDLrJI2UG3Ps5DCxY2Q7vPkFqL2W8P/NPA6lKXsftdTpz2mEo Iy2RhJpexvH7pTig4McDLLNOcbE//8fZNankibWSZi+S5iVewWGeoIcwCCHt6XVszMQA pGSWfUHeXk5A9illemR5bLXXHWierED0cGiec5peJ+EzDltrGIy0/L4dzNLI4mJDp8tH KDWO5jL7q+j3pyiHosZqFZ7hTyiIiyUcIzC6Ctn22hjJ1romIpr+Y0hDKBRgBx7a1Id8 M6xKRE7BE/NXWoV9ycVM/JfYLY0JQRZVbv7WH1fKseER869XD8FKW5sv1UNCxu/Qi/AX PNaA== 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=OfovK2RblzW2EInHe2i9gI2eSTWcFaSclrfYWsV6Gag=; b=XZOMDIvUbopnsrJ+9MPVxTzTn9Tcjr5qc89Xz74HUCeA1MbANJT5bHN/Kng04PKg9z IsEaAwdwVBhZN+gl9R+loZENH348dIxOHlLLrSu8hUeinbU4NXh2cXMgtEJozmRUqhgs /Lefkm/N7SveciITs7ywK38JI3fZ0B77XG9w3ybtUNr4XRaQqlwiSmiG3cLfW4TbraeJ W1eQTl5YcdOw+S+MtvPP2Zz4rVn/e5MGr6LIkJqZP5kre/N3AhZIoCZi0QGMps/T9RN0 JtYCVv3mEY/EEYhEGNJ5Ju+tQjJdDdL94VgfWN+y7UxwiQ9GkBX+1Jm7cFSmlRujPo7T wwBA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b="PNbBw2O/"; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 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=20210112; 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=OfovK2RblzW2EInHe2i9gI2eSTWcFaSclrfYWsV6Gag=; b=i7oOVnS3OzF70jHkYd/Dt0ITeK6EvIIlf3p41vDdh8MJU795J/OBIObyCHDYfV2DNT +CeJEJk/QCilcweABj5AirI0o2qom9s/VIzWB/05gU2ER0RbbkYVa3PcOU0365ffcZvm acoMEGC1QYayzhpkTgWji3JTixpAaUkmObGflYPFaL4e0APn92HcYX5uLQuNxcJ0s3WP jFXkE4lLzJUQQzgnsbMv24Sl1KTGWH9/L/yy4FNfDJ0Pf1VE0tnvlnEh3WhiMZ7IW1Dy wVZgoC26LV8g6tKJSuFAkWF0Tcu+sEgIjoCFci3x71U2+ X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=OfovK2RblzW2EInHe2i9gI2eSTWcFaSclrfYWsV6Gag=; b=SksA4SqhrX/1qhWEdwKWa7OCeSxLtBfIZebQghYfgBsYou9oQppACkWpyy6i9O2yT7 HO32BsUuZ1dRyAw8Zl38QlHtue2mr3nw7KNE7LqorWNRf0hCIzA33Z2HfG5UsO7vQ0sC lWZmUr3kh4iwUjQP9A7VRU9yX0bpTGfp6hsv6x+kBHmTiI9p30j6tbibyTNDgAeQmjkz 4Kah9tYZ0NaQZ4rtGHP5i41lPytIUro/dSJ/zUgg++CTCQNyKw40OJvB61Dej6TCidqo Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKU4xhtbQPWb+8Lqxm3W6oIOsRcvUrZKYGgqU547Yv/jjyJdT0fi fI+FPzbbv8J5p7bzA4GEkEs= X-Google-Smtp-Source: AK7set/Fl8MoEw2I2ecKFeW+W9NYLJwuZKEeuRpyzQpLjOTyDCE8AYCTZPzbMIikqegkqVpdBRsTWQ== X-Received: by 2002:a50:9f4e:0:b0:4ad:7943:f4b9 with SMTP id b72-20020a509f4e000000b004ad7943f4b9mr5017481edf.2.1677144638667; Thu, 23 Feb 2023 01:30:38 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:906:48c7:b0:8ea:a629:3dd with SMTP id d7-20020a17090648c700b008eaa62903ddls1819004ejt.3.-pod-prod-gmail; Thu, 23 Feb 2023 01:30:34 -0800 (PST) X-Received: by 2002:a17:906:2453:b0:8b1:7684:dfb0 with SMTP id a19-20020a170906245300b008b17684dfb0mr23180916ejb.57.1677144634181; Thu, 23 Feb 2023 01:30:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677144634; cv=none; d=google.com; s=arc-20160816; b=loBgWQVAbqEIbStazrDxcLIGcHgf8mzHRqLS4o6a/ZnArFVAuAn3JqtkrV/g9XPEAR N6a0IPNMOHRKTwFHIx3YoKqLMG+cox8asQXl5ehIf/wg5EsUcNMpUbtWrrxc/GWJSO+q 9anDNwRZwv6rYPY7pft0oW2XZbufW6xnZdiWYzWyoZ7vBBCQFt/xwQzsJ1gYQLccEEBs cl66FEuMRppgo4Bz+ztTYUk1UHWZY57++cSKMx4Qumt01ip0b0PM0mBVjlWb4UW+/aB+ 0jfUIVqEofCCgs0gGy4iaadfZZjkbCVeyyDVeYMUZbSiaVWprxHvkAMUMEdQce0DVutM HSCA== 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=PBleHIgaLDhPjT1e5ZMbU1bDsNu3dLp2h7qEcuGiyUk=; b=wwH+mPVF3hm9wTkn/5tyFkDNkndfmQbETWI17Iiaq+2GyRvjodg3UneiKC3T5Yscmh l+rGlIWvydzokxYtBbCGy85nFhMgMTw0yvwAHsYrQzmMF6h8QA3oewBbCo3r1k/+qryI hX/DGxZyC0JWgtHvkzrsIH66rNjXmtv/KlJSqEK6Un/UcKB47kHjUZXh+nUWF423RZL0 R2mnHRnPlLIlHj+BYKVuAiIRXf/yQ8rJuoBEdWOodIF3aRFFSw38ltqfrzvBGKEToJh5 e1Yp2xN/rCds3rKR55hPsWPrXvemACLPm6KXIIFLaR4Tl543SE0vX99PZjrxlXd8bcbJ 0n+g== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b="PNbBw2O/"; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 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 mout02.posteo.de (mout02.posteo.de. [185.67.36.66]) by gmr-mx.google.com with ESMTPS id i4-20020a170906850400b008dbae985b18si394244ejx.0.2023.02.23.01.30.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 01:30:34 -0800 (PST) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 as permitted sender) client-ip=185.67.36.66; Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id BC5CE240700 for ; Thu, 23 Feb 2023 10:30:33 +0100 (CET) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PMnnP2bfBz9rxD for ; Thu, 23 Feb 2023 10:30:33 +0100 (CET) Content-Disposition: inline In-Reply-To: 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="PNbBw2O/"; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.66 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:32223 Archived-At: Semantically, it signals the text as a mathematical expression. Pragmatical= ly, you get access to it via the Math element in your writer, where it is r= epresented as a plain string, not as a list of Inlines, which makes it more= easy to handle and prevents it to be interpreted as markdown (think of wha= t could happen with the characters ^ and _). Le Thursday 23 February 2023 =C3=A0 10:17:35AM, A A a =C3=A9crit : > I see, thank you both for your response. I guess I will have to go with > enclosing things in a Span or Div element. >=20 > If I=E2=80=99m designing my own writer though, I=E2=80=99m not sure why t= his: >=20 > [$x =3D 1+2$]{ .cs #math:equation caption=3Dtest} >=20 > Is any better than this: >=20 > [x =3D 1+2]{ .cs #math:equation caption=3Dtest} >=20 > Because in both cases I have access to the LaTeX math inside of the span.= What > added advantage does including the mathematical expression between dollar= signs > $...$ provide? >=20 > Regards, >=20 > Amine >=20 >=20 > On Wed, 22 Feb 2023 at 17:38, Bastien DUMONT <[1]bastien.dumont-VwIFZPTo/vqzQB+pC5nmwQ@public.gmane.org= t> > wrote: >=20 > For spans, it would rather be: >=20 > [$$x =3D 1+2$$]{ .cs #math:equation caption=3Dtest} >=20 > [$x =3D 1+2$]{ .cs #math:equation caption=3Dtest} >=20 > (Backticks are for code elements.) >=20 > Le Wednesday 22 February 2023 =C3=A0 08:33:36AM, Julien Dutant a =C3= =A9crit : > > I'd check out if there's an extension flag ([2]https://pandoc.org/ > MANUAL.html# > > extensions) you can add to commonmark_x input for it to process mul= tiline > > attributes. Or one that can be added to markdown to process math > attributes. > > > > As the Pandoc AST doesn't have attributes on Math elements ([3]http= s:// > pandoc.org/ > > lua-filters.html#type-math) the common mark reader turns them into > attributes > > of a container Span element, as your output shows. So an alternativ= e > would be > > to simply write the span in Pandoc's markdown by simply adding a ba= cktick > > before and after: > > > > `$$x =3D 1+2$$`{ .cs #math:equation caption=3Dtest} > > > > `$x =3D 1+2$ `{ .cs #math:equation caption=3Dtest} > > > > ~~~{ > > =C2=A0 .cs > > =C2=A0 #lst:my-listing > > =C2=A0 caption=3Dtest=C2=A0} > > def f(x): > > =C2=A0=C2=A0 return x > > ~~~ > > > > Writing a Lua filter that picks up either is also an option. Pickin= g up > > attributes list after equations is probably a bit complicated. But = using > > pattern matching to process the initial {...} in a code block is mo= re > feasible. > > > > All the best, > > > > On Wednesday, February 22, 2023 at 8:15:53 AM UTC A A wrote: > > > >=C2=A0 =C2=A0 =C2=A0Anyone? I also opened an issue in Github but no = response. > > > >=C2=A0 =C2=A0 =C2=A0On Fri, 17 Feb 2023 at 12:01, A A <[4]amine.ab..= .@gmail.com> wrote: > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Dear all, > > > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Having not received a response to = my query below, I ran a few of > my own > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0tests to try to understand what is= going on. > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0It seems that commonmark_x does re= cognize attributes for both > inline > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0and display math. If I have the fo= llowing in my markdown file: > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0$$x =3D 1+2$${ .cs #math:equation = caption=3Dtest} > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0$x =3D 1+2${ .cs #math:equation ca= ption=3Dtest} > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0~~~{ > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0.cs > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0#lst:my-listing > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0caption=3Dtest > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0} > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0def f(x): > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0return x > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0~~~ > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0And I run pandoc --from commonmark= _x --to native test.md I will > get the > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0following: > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[ Para > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[ Span > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0( "mat= h:equation" , [ "cs" ] , [ ( "caption" , "test" ) ] > ) > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[ Math= DisplayMath "x =3D 1+2" ] > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0] > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0, Para > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[ Span > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0( "mat= h:equation" , [ "cs" ] , [ ( "caption" , "test" ) ] > ) > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[ Math= InlineMath "x =3D 1+2" ] > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0] > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0, CodeBlock > >=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 .cs \n=C2=A0= #lst:my-listing \n=C2=A0 caption=3Dtest\n=C2=A0 }\ndef f(x):\ > n=C2=A0 =C2=A0 return x" > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0] > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Notice that the multiline attribut= es for the CodeBlock element > are not > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0picked up. If I instead try pandoc= --from markdown --to native > test.md: > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[ Para > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[ Math DisplayMath "= x =3D 1+2" > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0, Str "{" > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0, Space > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0, Str ".cs" > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0, Space > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0, Str "#math:equatio= n" > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0, Space > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0, Str "caption=3Dtes= t}" > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0] > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0, Para > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[ Math InlineMath "x= =3D 1+2" > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0, Str "{" > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0, Space > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0, Str ".cs" > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0, Space > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0, Str "#math:equatio= n" > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0, Space > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0, Str "caption=3Dtes= t}" > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0] > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0, CodeBlock > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0( "lst:my-listing" ,= [ "cs" ] , [ ( "caption" , "test" ) ] ) > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"def f(x):\n=C2=A0 = =C2=A0 return x" > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0] > > > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0The attributes in the CodeBlock el= ement are picked up, but the > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0attributes for display and inline = math are not. > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Unfortunately, for my use case I w= ould like to be able to assign > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0multiline attributes to code block= elements and assign attributes > to > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0display and inline math elements. > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Is there a way to achieve both in = the same markdown file? Thanks > for > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0your consideration. > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Regards, > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Amine > > > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0---------- Forwarded message -----= ---- > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0From: A A <[5]amine.ab...-Re5JQEeQqe8@public.gmane.org= m> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Date: Wed, 8 Feb 2023 at 13:52 > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Subject: Can math elements have at= tributes > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0To: <[6]pandoc-...-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m> > > > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Dear all, > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0I am writing my own pandoc to late= x converter using panflute and > would > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0like to attach attributes to Math = elements. I have tried the > following > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0syntax, but it seems that the attr= ibute is not being picked up by > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0panflute: > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0``` > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0$$x=3Dy$${ a=3Db } > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0``` > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0I did some of my own research to f= igure out what I was doing > wrong. And > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0a couple of things became apparent= : > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0- On the one hand, it looks like p= andoc might not support this: > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 - [1][7]https://gith= ub.com/jgm/pandoc/issues/684 > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 - [2][8]https://gith= ub.com/jgm/pandoc/issues/5286 > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0- On the other hand, `pandoc-cross= ref` seems to be able to handle > this > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0syntax: > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 - [3][9]https://gith= ub.com/lierdakil/pandoc-crossref > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 - [4][10]https://lie= rdakil.github.io/pandoc-crossref/# > equation-labels > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Is this currently supported by pan= doc? If not then how is > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0`pandoc-crossref` able to handle i= t? Thanks for your > consideration. > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Regards, > > > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Amine > > > > > > > > -- > > 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, s= end an > email > > to [5][11]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [6][12]https://groups.goog= le.com > /d/msgid/ > > pandoc-discuss/0845b275-aa43-4fc3-86a5-17b20de652een%[13] > 40googlegroups.com. > > > > References: > > > > [1] [14]https://github.com/jgm/pandoc/issues/684 > > [2] [15]https://github.com/jgm/pandoc/issues/5286 > > [3] [16]https://github.com/lierdakil/pandoc-crossref > > [4] [17]https://lierdakil.github.io/pandoc-crossref/#equation-label= s > > [5] mailto:[18]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [6] [19]https://groups.google.com/d/msgid/pandoc-discuss/ > 0845b275-aa43-4fc3-86a5-17b20de652een%40googlegroups.com?utm_medium= =3Demail& > utm_source=3Dfooter >=20 > -- > You received this message because you are subscribed to the Google Gr= oups > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, sen= d an > email to [20]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [21]https://groups.google.co= m/d/ > msgid/pandoc-discuss/Y/ZFCMVKXpyaki12%40localhost. >=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 [22]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [23]https://groups.google.com/d/= msgid/ > pandoc-discuss/ > CAMwawgMca58Ae4Ag0mB0XP_PMPbYubUY2UxBjTvPxXiS4DvozA%40mail.gmail.com. >=20 > References: >=20 > [1] mailto:bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org > [2] https://pandoc.org/MANUAL.html# > [3] https://pandoc.org/ > [4] mailto:amine.ab...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > [5] mailto:amine.ab...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > [6] mailto:pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [7] https://github.com/jgm/pandoc/issues/684 > [8] https://github.com/jgm/pandoc/issues/5286 > [9] https://github.com/lierdakil/pandoc-crossref > [10] https://lierdakil.github.io/pandoc-crossref/#equation-labels > [11] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [12] https://groups.google.com/d/msgid/ > [13] http://40googlegroups.com/ > [14] https://github.com/jgm/pandoc/issues/684 > [15] https://github.com/jgm/pandoc/issues/5286 > [16] https://github.com/lierdakil/pandoc-crossref > [17] https://lierdakil.github.io/pandoc-crossref/#equation-labels > [18] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [19] https://groups.google.com/d/msgid/pandoc-discuss/0845b275-aa43-4fc3-= 86a5-17b20de652een%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfoote= r > [20] mailto:pandoc-discuss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [21] https://groups.google.com/d/msgid/pandoc-discuss/Y/ZFCMVKXpyaki12%40= localhost > [22] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [23] https://groups.google.com/d/msgid/pandoc-discuss/CAMwawgMca58Ae4Ag0m= B0XP_PMPbYubUY2UxBjTvPxXiS4DvozA%40mail.gmail.com?utm_medium=3Demail&utm_so= urce=3Dfooter --=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/Y/cyOCyZLIs9UXPC%40localhost.