From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30961 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: A A Newsgroups: gmane.text.pandoc Subject: Adding own elements to pandoc AST Date: Wed, 13 Jul 2022 23:05:33 +0200 Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000001057b705e3b6262a" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15348"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDJ77HUDRUCBBKXHXSLAMGQE2QG7AKA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jul 13 23:05:51 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pg1-f189.google.com ([209.85.215.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oBjYM-0003dy-VZ for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 13 Jul 2022 23:05:51 +0200 Original-Received: by mail-pg1-f189.google.com with SMTP id x17-20020a631711000000b0041240801d34sf5850973pgl.17 for ; Wed, 13 Jul 2022 14:05:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657746349; cv=pass; d=google.com; s=arc-20160816; b=GCaPWmYyk1k+Eos3FO+m/QFGpQyXyBzQCxIn1DFyAhxGf4YXyl1wS9fL75rEr4vMqs erVCn0VECRGIhkNzbxtBViNkjVh4wE3SeIs/IbYCzJvVx0/Jq0U3W8wknk0HC0l2+pRV /pWHPpAZhiyU0myaCeIyoU2qVUB0zExZ6hwkfAaHWK/Ji6ywLOg/LlhEiyZfzd6Q/xbu U79rAtEmi6OkQL/XvlBi1/XkJKGmmSiySqbYeO0vkSLHpon9b1C335oagmSHCmepE1Np njHtqI1ZM+rYtC1wqOsjr/Q35WTkcwR2JR6O1oaufu+mLZjr5yaKTtEYd5p2+dzb+sLd 0yuw== 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:mime-version:sender:dkim-signature:dkim-signature; bh=BEkZHrR/Bh0pU4G1HW5CdozwcGKHdQxqAK89rACeDAw=; b=herLK7FLuUpJkZ0JJPJk5spYVolLfDZWa//WLuk5btvruHA/vQmW2rMwvEz/j1XerV k8i83shhaoMwpDuFt9ycxZNcyH9eAvvBTIr5no1+5TwCHERkNXglSbj4xQg2WNAaJqhT Pb/8QEEaR+50XG/lItlwZME/T2BJnOHu+kXMmMTg1t8o0LtbAj4+KJGcaJWnqQlZIzjd copBfdYHPE4EMcZmj9OMXjdgSgZpyM0HrR+0QEU1BEwwopxqXTU3vgKFV36FREHz1Me9 xZFRdAqOEOCsMg2EpiJu1HIblfZZAmtIX2lOzTp7W6MbXBk/3i1ePQZUce+Gk+gA7M8W jXWg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=c2Y0X9n3; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102c as permitted sender) smtp.mailfrom=amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:mime-version:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=BEkZHrR/Bh0pU4G1HW5CdozwcGKHdQxqAK89rACeDAw=; b=nVDL57NYGz35I4n5EQuDDeWypY5jpNPgLoW96oY6jpZihHwQgYbYlZM31wSqgZb5XK p5+h9aaFXdOgKx1n30+stazb8N4ynDemBxp0QxHaP+4MpfA1iJs8/qXCrAIOgp87XWa6 TuJM8lE6DGhsFyFpv/d5oPXH4+MkufvvYFO4E3ipsj9rsaC5+OshaCwCXY3t+3lfp4L7 /Xs9d2xK4gLeksSQgxkiX3dP5TzGb04weH5MhMyv06qgtTgC3hDvl9WLXdQ/7nvAzSen GskjEGJCPrUz4hN3Pc3fou142E5kqpkVqYBmdovyqJU15ctLAKU51n2W9+atUmmttRDx k5qg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=BEkZHrR/Bh0pU4G1HW5CdozwcGKHdQxqAK89rACeDAw=; b=cXx8BtVRs+EJ9BP1jJ9zSIS6ilzLIK3EbzvYOPc6dJ98xD0IfQgyKnLzJWgW1n++gC eJp9am7W7qiO9mvvbBz6rA4TkU5B4CKTR5llWJWZrDLx33ZNeHmVUH/N8Ig62H9/JHpI 5yLmQ32xZ+IfauZnicQ+6fvU9nh2VOi6lPHrFyaxGwTXO4MFVD3c02OE+DzaWpg6ouH2 1NhlOqdIxYDsN32GyUirFLGnjCqswWajC//nzdJsRy7y7uHVsa2VwCIGPfN0/hZjxllQ YOuYl4fufKoxpr466W3AezDabpQP4pT4uS198BgE2o7BblsgXtr2iHnr2n32dRMyjyDh OQXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:mime-version:from:date:message-id:subject :to:x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=BEkZHrR/Bh0pU4G1HW5CdozwcGKHdQxqAK89rACeDAw=; b=kdXD4MJtZLfK6b4S5bJKsozu7FnIxNylCMI+9mIGiIaq+haFFa8xVe0FGZSS6Y3EvL DDaRyyICqpNUXXlAdz3Sdo73h4saV0GRbyAAZx96ts+pO+vr2zU8PH4HazAw9fL/9+xZ stuDS4MWup2sg81ZxC64VyZHqop3P46HeSYOZowPUdblWRwB4tU/Gde5RkwAyTfZ9m4Y wM75Ml0V76FizVRYXBKfDoXXtOivBxHb/DhWoeed+3ihRe1BB20n6hWW/Pfyai1/rcbR /RWEeMnSNwHih20f/85f1nUNXzpjtx5e3uBKXvZ2hK3sRAJOnqIgoOwlEac5sZGePrbF C2rA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora+NJE3orif+hdZdYalEhxQ2aKagBNC0XffS+WzE3d1/uzsRwd5B ryfK77BC6nYr0S7LmrwyatE= X-Google-Smtp-Source: AGRyM1uA3XiNT7u+9ttxzc0Axi8QCSdVgLwhJ0L85JkhuKs8BFupx3fIjOIb0Kr/ALk3zUCNHevr5g== X-Received: by 2002:a05:6a00:2449:b0:528:3a29:e79d with SMTP id d9-20020a056a00244900b005283a29e79dmr5138161pfj.39.1657746349499; Wed, 13 Jul 2022 14:05:49 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:90a:4497:b0:1ef:9fcb:cdba with SMTP id t23-20020a17090a449700b001ef9fcbcdbals45951pjg.2.-pod-prod-gmail; Wed, 13 Jul 2022 14:05:46 -0700 (PDT) X-Received: by 2002:a17:902:e948:b0:16b:9263:b6d6 with SMTP id b8-20020a170902e94800b0016b9263b6d6mr5048213pll.34.1657746346048; Wed, 13 Jul 2022 14:05:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657746346; cv=none; d=google.com; s=arc-20160816; b=WwvQC2qu0banLK7Ub33ayb8Md5GFaW+cnpV+UYGdvKPOnyX0KHq+U1cXkC2mEaNwuK GbaDfIs6rPMv5VQ2Knivat9LWDF09F4rTh9WndwHOKBClOmKTCwIYT5QHd6uOV+3iSdW 9G42Y9In9syoHjQIHjhuvTOPVWsb/cmZUDKWAX7pBZqYTXMAXLNncBpnGVdiIFLPzrqR Zs18ogKjO5lAad45hUyr5jPcoUxFZ87M9nG+XpJJUvSschiqp3HQwEDOXf3YHoCUgXl3 pKa/dCydfnEVkUXwoKRzxey54+sWKjJ4WSCscAK09FCS3a8v0W9iDdCXK7mXn3vhESoy LZqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=MB6po2iFyt2i9QjJKrb8TJpNWZA7Ih4EDB9BAukOhJU=; b=MlYnbfc4fcw9WlN9dw22a4Z41kp5kY6Pv9ZzRhL6nEeRbwFnyYObMiYqst+qvMLyc5 nnqhD8RWfOx1BJdP8P0kft6RTSA9y0WghjaFgWNDqIwWawLajfwri7vgxnJBmz0lcvDg Wq8rEk6/q7nIyE5kvmQwY1FAEMo76dQgxcYuH9z4vXXsl/FF5zGInaePMJ+dCbwjj9W+ 1QMh7NstfwZKwdbeTAIpItYvLj+XNiFfhpd4qIxzZsn4LW3P/0OWMEtIG0wXLvK+hsp1 1xinXO8h/tGF6kackmCAfpJlPbhNamM1xnJmlQzmmMxl+sS72PH/mrR1jv60+G/I6mjH RXaw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=c2Y0X9n3; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102c as permitted sender) smtp.mailfrom=amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com. [2607:f8b0:4864:20::102c]) by gmr-mx.google.com with ESMTPS id i1-20020a17090332c100b0016bfafffa26si410097plr.10.2022.07.13.14.05.46 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Jul 2022 14:05:46 -0700 (PDT) Received-SPF: pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102c as permitted sender) client-ip=2607:f8b0:4864:20::102c; Original-Received: by mail-pj1-x102c.google.com with SMTP id 89-20020a17090a09e200b001ef7638e536so5741236pjo.3 for ; Wed, 13 Jul 2022 14:05:46 -0700 (PDT) X-Received: by 2002:a17:903:1c7:b0:16c:4f00:65df with SMTP id e7-20020a17090301c700b0016c4f0065dfmr4887730plh.158.1657746345710; Wed, 13 Jul 2022 14:05:45 -0700 (PDT) X-Original-Sender: amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=c2Y0X9n3; spf=pass (google.com: domain of amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102c as permitted sender) smtp.mailfrom=amine.aboufirass-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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:30961 Archived-At: --0000000000001057b705e3b6262a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear all, I have a use case where I would like to be able to add my own element to the pandoc AST such that I can use it in a panflute filter. This would be an inline element emulating LaTeX=E2=80=99s \gls{term} command from the glossaries.sty package. I envision the markdown to look something like this: mentioning a gls:term from the glossary. or something like this: mentioning a gls(term) from the glossary So the syntax would be very similar to LaTeX, but a bit more lightweight. Is there a way to do this in pandoc? Inheriting from Block or Inline and setting up custom syntax such that it can be processed by a Lua or Python filter? Thanks for your consideration. Regards, Amine --=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/CAMwawgNgACJDXLyFAcx26iy4-71yOUD%2BHccx67%2BRgJB132D0_A%40ma= il.gmail.com. --0000000000001057b705e3b6262a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Dear all,

I have a use case where I would= like to be able to add my own element to the pandoc AST such that I can us= e it in a panflute filter. This would be an inline = element emulating LaTeX=E2=80=99s \gls{term} comman= d from the glossaries.sty package.

I envision the markdown to look= something like this:

mentioning a gls:term fro=
m the glossary.

or something like = this:

mentioning a gls(term) fr=
om the glossary

So the syntax woul= d be very similar to LaTeX, but a bit more lightweight.

Is there a way to do this in pa= ndoc? Inheriting from Block or Inl= ine and setting up custom syntax such that it can be processed by a = Lua or Python filter?

Thanks for your consideration.<= /p>

Regards,

Amine

<= /div>

--
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/CAMwawgNgACJDXLyFAcx26iy4-71yOUD%2BHc= cx67%2BRgJB132D0_A%40mail.gmail.com.
--0000000000001057b705e3b6262a--