From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32691 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Complete sample writer using 3.0 syntax Date: Tue, 23 May 2023 18:01:35 -0700 Message-ID: References: <036dd5f8-667a-2b2f-9eaa-76c29718cd55@meddatainc.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_A9085999-9C16-44EB-8A68-8BDF2AD405E6" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37462"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBB46DWWRQMGQEHWTVCEQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed May 24 03:01:44 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f64.google.com ([209.85.160.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q1csp-0009WP-FQ for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 24 May 2023 03:01:43 +0200 Original-Received: by mail-oa1-f64.google.com with SMTP id 586e51a60fabf-187959a901esf259502fac.0 for ; Tue, 23 May 2023 18:01:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684890102; cv=pass; d=google.com; s=arc-20160816; b=kOUbnuNulimYiEiq0plNpyazzcrw1IJoMMRfvqKFRlC/qN+7tvWyTNJxZJ0dIXrZ52 BuniK7BQPQjVdo96fTvEojb0IbS27pPy6Skdaw6hAyUiyQoFb/7i2QWCj2JbxMuvYAzT Lbg1uTHOPizRvGt3pXk0ZHADnYhqc6kZpn8+uZukLK556zf0/yo+PYWEBxHz8ZnfZg/s rPxsGDsB2aRq9PB5TlhEokuLy3MDpDN+CaTN6yIsfWqWwRnKZmGbiKS9TjLQI5B1aFci UctguYVC8wx4qmePwQTx2mosUudAMNXZSVuulmj01FgeEtg7lAugzzZd5NJk5ScW2HJn NBZQ== 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:message-id:in-reply-to:to :references:date:subject:mime-version:from:sender:dkim-signature :dkim-signature; bh=dx0Juaq4NBOO0gCkZ1HpMBhuF4OmeVMMBtAEMNbBmwk=; b=VntUkQ4WhJQh9hjlwf7aywJaTHH+vUWP9s5wx5lMaHxXBlPMCATMrvRpNQK3+9oJ2O 3ZAnBHz+AR61v7AZMB/xnKXbDXh0E2PPh2Y47lJm+FNtjVCd1JoRDms0GmMo9dOCp3Ev 1CACA+T8fNiKTJvVueg5hL4j0Us5YrDxZnq2umTJsBGhBCCdAaId4YESW/rMc56ZV5m9 iyY+BoarpJbEE1J+1pKpnkRqD2EN+onwVum7+gnoXhNJ9pD8Z7T4cuGfn8XyTPgzE9bf E1379DW1NJgK9Rsa/cHSAa/Uj8WYKs52rJF8StlB6MA5sf9bKg293B0KZuaKQiXYEG3p J5dQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=JL4t98Vc; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1035 as permitted sender) smtp.mailfrom=fiddlosopher-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=20221208; t=1684890102; x=1687482102; 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:message-id :in-reply-to:to:references:date:subject:mime-version:from:sender :from:to:cc:subject:date:message-id:reply-to; bh=dx0Juaq4NBOO0gCkZ1HpMBhuF4OmeVMMBtAEMNbBmwk=; b=eR7+1QbfGm5+Dxqfkj5qRn4NuXggp6YNy4tUVYp29VNZhmp5cFFD/3p3xCm/mHYXX+ 3lKVHkkfmJyqSUZiSUTWt0iQ9TIoU1Z2SbR8QSV8w4jtjTURw7uuZKIAT+oHLrdyoRNo A06OnNoSOPHdiaspzAz/j5SskG5ZHc3Od7G6yBFeOyaP7zCkbYMIm5z7sU9diGgsI3GY vaE4qisR+eUQHwdR8TSjQMNSVbJxTOeOjEZe4ZMw2ZCJWDZQtbiwq5EGTeYkvWGx0FiW IPXwUQ+AzVWSeox7poS+a7TmEe/dTXAhne1HSjmAnRQfNPtYk7oRboOR1juQodk22MMW DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684890102; x=1687482102; 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:message-id :in-reply-to:to:references:date:subject:mime-version:from:from:to:cc :subject:date:message-id:reply-to; bh=dx0Juaq4NBOO0gCkZ1HpMBhuF4OmeVMMBtAEMNbBmwk=; b=YmsO7jMlG1S61wQCM6DYHicubF2tF2SaVg/y/c4hP2dK3ba6mB88U5yp16ox7/V/or 7B2aHxpNU2qi8kRmMoKE1JnqRnB8Ro+mJKvMUVvm2n5phg75TMyo93S4ylBROYIkA/xY 3rw6TGrDRS6GWYblH3zAzjtOpr2SKpS684qWnLbjWDFKe0cNV4mtke2U1nnLcN6S/7/E q4MBoGaZI2KWZ+eOu4qvbz/E5QS4ExY/HfCR5TodBylAJmOPKgirwLkh5gGmfUA1A+Sk 1aTwpW7QnwJr68uVk1J3CZ1iN9LeHewPeI8f/FxpslftvV23RruvkqWQUtSUDw100JsN 4+Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684890102; x=1687482102; 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:message-id :in-reply-to:to:references:date:subject:mime-version:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=dx0Juaq4NBOO0gCkZ1HpMBhuF4OmeVMMBtAEMNbBmwk=; b=JxcHNuxNvjpS0ORMuYa+PKL9/jZVreReAnHNNRh7F93bg/OqquSpyYPrJaLE6Fvq3l Vl5+retI0SnQSmN1h4XPALR5LInbXWdKBW8QK46EmB8s9psqevJyYB1mkO3U0wsitRsG QcmuZpPw3gjN8IF+LDmuAdZBv2IMYI6OTfwB6SzC7sr3PTQ/Ilr0Ob8LPUBzvmNFQDGB UcW3GfTVU9plrVDVnV2GYjht/AhOUhWRAAd1I65Nk4vvSYiDeAvmtAvROxfpe28gzmcH h8x+i2 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDx7l34+5y4EfqaFEGhXMfK4muMXLygVKlTAg5+F4PaaUcoHjDX8 jyH/O1sjpwTZeqXm04pbXk4= X-Google-Smtp-Source: ACHHUZ4jwf94vdTfqQ6oGI7CCGernNrwWV20DXCusfw07IRUxDx62pf4EFoam652yJL29SXUVS1JBw== X-Received: by 2002:a05:6870:b142:b0:195:e81b:514d with SMTP id a2-20020a056870b14200b00195e81b514dmr5209278oal.8.1684890102279; Tue, 23 May 2023 18:01:42 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:d818:0:b0:555:2cf6:4bca with SMTP id f24-20020a4ad818000000b005552cf64bcals1472783oov.0.-pod-prod-04-us; Tue, 23 May 2023 18:01:39 -0700 (PDT) X-Received: by 2002:a9d:6ad9:0:b0:6aa:f539:5ad5 with SMTP id m25-20020a9d6ad9000000b006aaf5395ad5mr7183275otq.23.1684890099333; Tue, 23 May 2023 18:01:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684890099; cv=none; d=google.com; s=arc-20160816; b=hploaat+TAAoTLkccusDhY3f58kUGkYTQ087bNiUztEB2ONse3vJpNpRHcsNd3fcll l/P3Tbks0oM0qIYbwvk8rlTATDoYg0/h2SS90QEL09Cm1z4kMZD/UoL8CY5Mkxj4fiY+ 7c+QVN6GfBeqX65PIY538PASUrHbwxpE3eH16AjHB/bv9mdNe8oO2tzka5L5fZtaA5kJ BmOQJ1Zk2Gg/f4amtkzhqQLTi5nM5ohVNkiVHzjxNK3ZIZ3Er5mBOti5FvKoa+jnxG5o R+x9e8vCImMEdsQMbACqZ+BEn5KldNt6utsn4ulV+xt+bKHWg1fXlzWuD02Ka7mUXbXE KqnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :dkim-signature; bh=+ZOoR6cYf26H1wnIdt5HGTCLjbFtuXSahEwv2ZbXHKw=; b=P6VgZjxqYMuVM4zdoxi8WIn89lRVm1u2yg3lCw179MKZqCIvBk5RFg9eYWmgyvBGm2 na/OR6EUcmw044l5bZwmqIDTuvEB9yn95Fz3ZrRTLZcPx63Y7DQi+CuCSAFEE9Ig/K18 YYyygRWRU/oeduBdNBVEfWpRVGpZ1xQ/qnopCD6Z6LvRa4/BRiI8wPfT+VY8Zy6eYewt 4mZpJ4q/7R90W3CT/1CYHuUidNp+3FkpSfeLD5Y+J6r0JoXd6I5DJgeOAf5iaNTI6F56 78drwX7jlSlwJ2y0xLFB8ya4O9BxdpCkpH1PU+R/y9zUEAWwtaBZzv24W3V+Azrc1Y/3 EO1Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=JL4t98Vc; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1035 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com. [2607:f8b0:4864:20::1035]) by gmr-mx.google.com with ESMTPS id m42-20020a05683026ea00b006af9844743fsi135696otu.2.2023.05.23.18.01.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 May 2023 18:01:39 -0700 (PDT) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1035 as permitted sender) client-ip=2607:f8b0:4864:20::1035; Original-Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-2533a03388dso268881a91.2 for ; Tue, 23 May 2023 18:01:39 -0700 (PDT) X-Received: by 2002:a17:90b:1d03:b0:24d:fba9:80e9 with SMTP id on3-20020a17090b1d0300b0024dfba980e9mr16145428pjb.23.1684890097943; Tue, 23 May 2023 18:01:37 -0700 (PDT) Original-Received: from smtpclient.apple (protagoras.phil.berkeley.edu. [128.32.252.45]) by smtp.gmail.com with ESMTPSA id w1-20020a170902e88100b0019cbe436b87sm7386340plg.81.2023.05.23.18.01.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 May 2023 18:01:37 -0700 (PDT) In-Reply-To: <036dd5f8-667a-2b2f-9eaa-76c29718cd55-FcZObrvlYduBUy7/sJONFg@public.gmane.org> X-Mailer: Apple Mail (2.3654.120.0.1.15) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=JL4t98Vc; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1035 as permitted sender) smtp.mailfrom=fiddlosopher-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:32691 Archived-At: --Apple-Mail=_A9085999-9C16-44EB-8A68-8BDF2AD405E6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Here=E2=80=99s a pretty complete example: https://github.com/jgm/djot.lua/blob/main/djot-writer.lua This is a pretty full-featured one, even using doclayout for indentation an= d wrapping. > On May 23, 2023, at 5:22 PM, H wrote: >=20 > As a newcomer to pandoc I could greatly benefit from a /complete/ sample = custom writer using the 3.0 syntax as I am muddling my way through learning= it. >=20 > Googling finds a lot of code fragments using the old AST syntax which is = now deprecated. The github repository referenced on the pandoc website has = a lot of old syntax code but no code using the new syntax. Further, the git= hub page has a warning that the site should no longer be used. >=20 > Where can I find a complete lua writer using the new syntax? Does not nee= d to be a sophisticated writer, perhaps just making some customization of H= TML output as such just to get the feet wet. >=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/036dd5f8-667a-2b2f-9eaa-76c29718cd55%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/EB4E4875-E1E0-48F7-9379-20FEF966E944%40gmail.com. --Apple-Mail=_A9085999-9C16-44EB-8A68-8BDF2AD405E6 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="UTF-8"
Here=E2=80= =99s a pretty complete example:

<= div class=3D"">https://github.com/jgm/djot.lua/blob/main/djot-writer.= lua

This is a= pretty full-featured one, even using doclayout for indentation and wrappin= g.

On May 23, 2023, at 5:22 PM, H = <agents@meddatainc.c= om> wrote:

As a newcomer to pandoc I could greatly benefit from = a /complete/ sample custom writer using the 3.0 syntax as I am muddling my = way through learning it.

Googling finds a lot = of code fragments using the old AST syntax which is now deprecated. The git= hub repository referenced on the pandoc website has a lot of old syntax cod= e but no code using the new syntax. Further, the github page has a warning = that the site should no longer be used.

Where = can I find a complete lua writer using the new syntax? Does not need to be = a sophisticated writer, perhaps just making some customization of HTML outp= ut as such just to get the feet wet.

--
You received this message because you are subscribed to the Google= Groups "pandoc-discuss" group.
To unsubscribe from this grou= p and stop receiving emails from it, send an email to pandoc-discuss+unsubsc= ribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web= visit https://groups.go= ogle.com/d/msgid/pandoc-discuss/036dd5f8-667a-2b2f-9eaa-76c29718cd55%40medd= atainc.com.

--
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://groups.google.com/d/msgid/p= andoc-discuss/EB4E4875-E1E0-48F7-9379-20FEF966E944%40gmail.com.
--Apple-Mail=_A9085999-9C16-44EB-8A68-8BDF2AD405E6--