From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32896 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sylvain Hubert Newsgroups: gmane.text.pandoc Subject: How to wrap code blocks within new tables? Date: Sat, 1 Jul 2023 00:58:33 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_38809_18362492.1688198313816" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="722"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDX6LT7YRQIBBK5Z76SAMGQEEUDWYLY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Jul 01 09:58:41 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qk1-f186.google.com ([209.85.222.186]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qFVVA-000AWt-39 for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 01 Jul 2023 09:58:40 +0200 Original-Received: by mail-qk1-f186.google.com with SMTP id af79cd13be357-763a397a3cesf292971285a.1 for ; Sat, 01 Jul 2023 00:58:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1688198319; x=1690790319; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=Oz4VWeRGlz6VoBU/V1vCYIGY5sXNrqYTApbVemtYi88=; b=aLftD54mLjEMIZb7orgifEYzoYLyCM5SDBMOqRvsU/O/nbHUQjW4CWaC6cC3iokSNt WMiDQBMQBxN9+Xpl6jqObRrbjEYMmZCVBLQ2ZC3XLw7gX1LqqLMN8E2NRXtxXnV3UkVk Agz5cD194Q3KFGPBKPCRCIbgibzlD1lOvPjwq2oSvvWO9PFSkXLhFlMqWk7zLhQ1Mdd8 AreRwv556LtiQANz0GHTIS9H2PnCcEswk/z5RqUKYOwl7M2X9JIj9IPXCGbI6jSfx171 vQnTF06SVHQv74GZ8Afk02yp1GvWOeDxTP11RU40DmjsLNdthmw/UtfTAwdVKTZEEiR+ DNEg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688198319; x=1690790319; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=Oz4VWeRGlz6VoBU/V1vCYIGY5sXNrqYTApbVemtYi88=; b=UHIMybxGqA0UJ5TNejb8BXk8N+wyECHjiI2QcdCsSQl5zMX7eLuR8bYH5O0nwbaXmE NGNDaK/6SxO94OegCWVTxcQIeYjNFR1b8g1jMmGR8JDR8ZBaVFhS9pxnU2soMys6oIrp IuKkDTjHFQHLUkQJyNjXRBGYHS+/B6MeGY1+IA7+2JdIu2rSysZTOKXFpTPvpMyX6m8s gV0O/Qi3sSPlOwtO8t3qP5ubL/1uMdDSmLqg+YgwkUYN8MID6jTD8AUrMOmfYGhGbwYH Bi0F99Gy07AUtlePKxUZq18xAej7hXQ3q8SH24SU/DEGVKUxHP4TqMvuOdP0Hk1bZMbT iiwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688198319; x=1690790319; 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-sender:mime-version:subject:message-id:to:from:date :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=Oz4VWeRGlz6VoBU/V1vCYIGY5sXNrqYTApbVemtYi88=; b=Pf+jUlx9whVq5ATEGiD9hgDZ2hIngtOmLJTYt8QB8L3uUpvEpi0Up52YTRHZiBbzHf p7ZZmMv1HlsTWQu0m4rc8QmIzs3wonFQzr59PSHkbt6eem2LgG7PGnxxcgG9i1Gb6b/o jZ+zo4xSUoF+fBEyy588K6XD6FX1A2vKlXpOxspuhw9FS2TbAmmL/7BvD28/NVk6b2Dx gIuT7BRtaRDnTGbDg+YYSJb9C6N6otQp3uUj7mpNjCnWGLGktXzHldVRB7oqbYJx1ITd I18Bbm/b6rS6aAspmxqu4F/0A2jsnNGRjbRgISoi1B71oyxzZ7CUDC6P6u1wsfvnYq0o Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDyRWtU6EfbZM6aNUV7ylAOv82ZdfrVOf0z4mOC53rmiSn5HlP1g Seclt4aroeL76m3cKDXoUaw= X-Google-Smtp-Source: ACHHUZ72zr/xe/4z15l2kHFsKBNfR2zd4G8wJE6dLLz395VPmqah7gNNA2neo4u0GVCuJMR3OkaatA== X-Received: by 2002:a05:620a:448b:b0:765:6f06:8f44 with SMTP id x11-20020a05620a448b00b007656f068f44mr6778334qkp.22.1688198319015; Sat, 01 Jul 2023 00:58:39 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a62:82c9:0:b0:666:ec56:e7e6 with SMTP id w192-20020a6282c9000000b00666ec56e7e6ls1228774pfd.0.-pod-prod-09-us; Sat, 01 Jul 2023 00:58:34 -0700 (PDT) X-Received: by 2002:a63:594d:0:b0:54f:ce7b:e59e with SMTP id j13-20020a63594d000000b0054fce7be59emr1757763pgm.7.1688198314647; Sat, 01 Jul 2023 00:58:34 -0700 (PDT) X-Original-Sender: champignoom-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 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:32896 Archived-At: ------=_Part_38809_18362492.1688198313816 Content-Type: multipart/alternative; boundary="----=_Part_38810_1099618202.1688198313816" ------=_Part_38810_1099618202.1688198313816 Content-Type: text/plain; charset="UTF-8" Hi all, I'm trying to create bounding boxes for code blocks by wrapping them inside tables. According to the manual, I should probably use some filter like: function CodeBlock(elem) return pandoc.Table(--[[... elem ...]]) end but pandoc.Table takes a giant syntax tree with levels of all sorts of nodes. Neither the manual nor the error message gives a useful guide of actually creating a table. Could anyone provide a minimal example of creating a pandoc.Table in a lua 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 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/dcf7041b-c805-420b-ac60-07e6692e1577n%40googlegroups.com. ------=_Part_38810_1099618202.1688198313816 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi all,

I'm trying to create bounding boxes for code b= locks by wrapping them inside tables.
According to the manual, I = should probably use some filter like:

=C2=A0 =C2= =A0 function CodeBlock(elem)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 return p= andoc.Table(--[[... elem ...]])
=C2=A0 =C2=A0 end

but pandoc.Table takes a giant syntax tree with levels of all s= orts of nodes.
Neither the manual nor the error message gives a u= seful guide of actually creating a table.

Could = anyone provide a minimal example of creating a pandoc.Table in a lua filter= ?

Thanks

--
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/pandoc-discuss/dcf7041b-c805-420b-ac60-07e6692e1577n%40googlegroups.= com.
------=_Part_38810_1099618202.1688198313816-- ------=_Part_38809_18362492.1688198313816--