From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28316 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Create div around tables? Date: Sun, 09 May 2021 09:44:47 -0600 Message-ID: References: <212bcc0a-2987-4217-8276-1d47e259b2e4n@googlegroups.com> <2a0574fe-2470-4280-9a54-1987abda058dn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1312"; mail-complaints-to="usenet@ciao.gmane.io" To: Dominik Heinz , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB7EG4CCAMGQEFA2DF4Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun May 09 17:45:03 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-qv1-f62.google.com ([209.85.219.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lflc6-0000Ba-On for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 09 May 2021 17:45:02 +0200 Original-Received: by mail-qv1-f62.google.com with SMTP id b1-20020a0c9b010000b02901c4bcfbaa53sf10558152qve.19 for ; Sun, 09 May 2021 08:45:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1620575102; cv=pass; d=google.com; s=arc-20160816; b=dHGTW2khiRjCKx9CWdyYTDaN107aZJCfi2bFXNjxenZrg9+YRo0c2OuCXpGk5bnvyg ReWQC4BCsyqitqOr5hCJ1rbXgnihgatSMrqhTSf1foha8yGAaGAEBGLqorindDqKlrLM qTlZvStngmO4DWxmTMa1aKM5BO+C3wwdTEmfroWRgFcRWuD1QVCUeoeoj8B/VJEu92UT jjPPcwKiOfsmpEyHAnurpXrid43Ar2QMpQOZt/REU8UXqvGQK41IssMr3XSig15WxL/w +NlTNnugn88q8fWZBXyFWvhY2+0NJcmzupsSjUE0OxEfbGFBmWwWo5+45nORMLjXyK8y 2pCw== 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:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=4sCsCpVamniQOxc8EgQgkJt2MnhtmUHz2bhOLSsTIQo=; b=fcUNlIU/TQrxFO2J34eWt6kysfUiOwT8CivVWddt+lQWnvLRqQy6T9R9xvK/GZ5ies T+ufqwWniYgNNfqXUBgA1DpBZqsj5sLKEdG40PbQayC1aEbjVW1zdk43+e/fAfZcaEPA BsWQwiDZhrNN4kWeoK1FQzZXom6BzXFSaYMQ9usXaes9lAa5Qi/Vw0Lkn9SI+5kU+hNi cPz2O1i/lcbT+Wr/UkexY+5ttklHBZCxW/8+bud5n60c4cK3BO3RLdG5owBNshPuRBlm DriIMFWF7N1FU4cMeKAIeRD92uocFEJxQ84pXn211QiTE8pVso3vD/B8LKYUEyMeEYrD a0Zw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=Xg56comZ; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102a as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version: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=4sCsCpVamniQOxc8EgQgkJt2MnhtmUHz2bhOLSsTIQo=; b=amya6ewEnHFFUyRBgOGPTfGXt1sCIlcGsX2rArwNLD3w7i0xzUNFiSIMf5BT2i64xi Itu7Qq4krWB8J5jXD3ebGg391VbA//Gz/2oPcBKBiU0K8TdH8xmO2r8efI9JlA59omkV noYy0ybrRUXM1gDed2l2Gyrd8lTydF4ZFc7eRcsJ//0vGTfkBfQ2mGZ4Wgig0hyKUiiI v/l4U37oW3rveAz0tRHQ8hOwJti1zny/UJIBYTfj4LQvZmDCWLUG+E4VamNAoAi4idoQ JlcLwNLKKbRW9JoNlyTnriuO2RD6JyGcF5FfPqyD2evsxUuWxCtssMc0rtcHCEysG9Y/ n4pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version: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=4sCsCpVamniQOxc8EgQgkJt2MnhtmUHz2bhOLSsTIQo=; b=i7TxTmwFMy1fQQj2q5eshsGw20ppaxOAkdVT2qkmTlhBs/S0SzJiurRDcp/fVuOWj6 IU5Iboj8CR5i0IvdyDiSi9ncbbkHY7MNcsLvIOfxr/i5UYBI1iKZzA6HvwxXOzmfsz4s /Ycm0b5x2Li8Jy6j2j4enmtX9AtnsLTMx78fZD/q6rhFJkEplPrzUUxpb7sntxAOgtAB ZMh8gEpZSPLP+viMsTCogdwPDhZuxLrsk1stcfs+UVEZD5DimizC4ohQAl3nMi3m/Lpb Y/52AraszdPYtn30i2/I+icB1Ubcf/VvCUeEL6SJLb8ryXN2IYLqoY33PCXRFzdWt0Da 916g== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530Wnh7I4j8jQSlnDXjJ97crlwEL0s47T87ETRVX0PopNKXFJ+Q6 /yrcVpcWlp3o26dNo+RBXf0= X-Google-Smtp-Source: ABdhPJzqqOcZcEYtDuweiAZe0NKo5E5bj0U2uqLO0r7OvNuaT8h5dA6dLCrEfJROB/I0Jjn+MTx2Cw== X-Received: by 2002:a37:a1c4:: with SMTP id k187mr10267900qke.26.1620575101930; Sun, 09 May 2021 08:45:01 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:ac8:202:: with SMTP id k2ls5387982qtg.5.gmail; Sun, 09 May 2021 08:45:00 -0700 (PDT) X-Received: by 2002:ac8:570f:: with SMTP id 15mr18650322qtw.309.1620575100235; Sun, 09 May 2021 08:45:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620575100; cv=none; d=google.com; s=arc-20160816; b=jMptOPTHMT1cUzLWY5UPSiDigw0yJxtnSlHrst6ctpqrm67rYllvPTpsbtBNlOxUHU d5ON0+JG5jVGEUt2H7rS2QaQ/U2D0Tm3E2vSZ/o8zGIyQJOaW/5WljcRjLEFPJ93qPpw +jo8/a4t/wQRcMVZL0kR9INNEyUbphOQ+rwgq8mLixKyK62XtMm8nNVRWdVkarCFy5Cm 5o2mqgIXYGfrIDmbh0AH9OpPVkD7lWWPVl8ZMAK8gU70Et5IeJ2H9XinijE8EYA8gri9 5WjKsbN8fwCJojzAtTW09taQX0OWDTBOS5+poS8PzIgY79hNJv41KIzY3CGGgZJWliPJ qL3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=dlyIHGvIV93XQoU4PJ1Dn/04WcAs9X69pRSebL92FtY=; b=UAGGnqAQsAZHP+loNOPTqHuAovKB+K1R4TeSWl7aKkv/0hoBjNy6IP8bHL1uXh2/5M Q4t/ac1X3Z2FmIWd/lbxezVC+1c8Vx9ZXz2zpky3SY33UEm/S+DsG6QkKJ4R6DjRPiCX y6yMKKShcianDsKGcXRaFlZpZXAsleARunC05rQpXWZZIX7lHS9ztk070Y3oTER9eDVe lfmFs19JSanh1qZnETO9ESuVEON4/Fd3Pk9fRfATDHNBabDeJbyZ2xsPcqvYTXwUgnuS 8pXqUeEx2YJ+Ytl8QOyk3HEJmCpa014lN8UhM1LsvBmanl7KN6MNrxy8u7qwvD5TcoKs dvag== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=Xg56comZ; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102a as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com. [2607:f8b0:4864:20::102a]) by gmr-mx.google.com with ESMTPS id 142si1248503qko.4.2021.05.09.08.45.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 09 May 2021 08:45:00 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102a as permitted sender) client-ip=2607:f8b0:4864:20::102a; Original-Received: by mail-pj1-x102a.google.com with SMTP id gq14-20020a17090b104eb029015be008ab0fso8684098pjb.1 for ; Sun, 09 May 2021 08:45:00 -0700 (PDT) X-Received: by 2002:a17:903:18b:b029:ee:d430:6c4d with SMTP id z11-20020a170903018bb02900eed4306c4dmr20747024plg.34.1620575099194; Sun, 09 May 2021 08:44:59 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id g18sm9379840pfb.178.2021.05.09.08.44.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 May 2021 08:44:58 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 7C0A0A231; Sun, 9 May 2021 11:44:47 -0400 (EDT) In-Reply-To: <2a0574fe-2470-4280-9a54-1987abda058dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=Xg56comZ; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::102a as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:28316 Archived-At: Sorry, the correct filter is this: function Table(el) return pandoc.Div({el}, {class='foo'}) end Dominik Heinz writes: > Unfortunately this results in the entire table being deleted by pandoc on > my end? > > John MacFarlane schrieb am Donnerstag, 6. Mai 2021 um 17:45:48 UTC+2: > >> >> You should be able to do this quite easily with a Lua filter. >> >> Something like (untested): >> >> function Table(el) >> return pandoc.Div({el}, pandoc.Attr{class='foo'}) >> end >> >> Dominik Heinz writes: >> >> > Hey, >> > I use pandoc to convert from md to html. Is there a way to automatically >> > add a div with a class around the table tag? Preferably with lua >> scripting? >> > It doesn't seem like Table is a valid identifier? >> > >> > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/212bcc0a-2987-4217-8276-1d47e259b2e4n%40googlegroups.com >> . >> > > -- > 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/2a0574fe-2470-4280-9a54-1987abda058dn%40googlegroups.com.