From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28313 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dominik Heinz Newsgroups: gmane.text.pandoc Subject: Re: Create div around tables? Date: Sun, 9 May 2021 07:39:15 -0700 (PDT) Message-ID: <2a0574fe-2470-4280-9a54-1987abda058dn@googlegroups.com> References: <212bcc0a-2987-4217-8276-1d47e259b2e4n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1668_868570170.1620571155412" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15340"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCZMD6EIZQMRBFHI36CAMGQEWQQT5CY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun May 09 16:39:20 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f185.google.com ([209.85.167.185]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lfkaU-0003r3-Uc for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 09 May 2021 16:39:18 +0200 Original-Received: by mail-oi1-f185.google.com with SMTP id n128-20020aca59860000b0290159ccfcbd31sf7692770oib.10 for ; Sun, 09 May 2021 07:39:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=vWhCUDEK4dLVjhtUwOBGyFFlzdDD4yZCHVoj/ctuBFc=; b=D+Iq3oRI+o9l6apjcr7MZMvJ00mWocug+ix3sdlYoOjbVLkqDR5tdg0BIz7Czn0CIe fasnYtufzm2blELpUYGC7Km2mYC63yrMbm3BDefDim7QAjYAM+IJ6Tb9OnD329cTsrbW /huwTb2wPDpjsQ2sP45XPLoPvIUJCW8x31kLExfM2YfiOa2A81eA2fBhbGV1SWqXZyIQ rPe03EX6LFQSBUJEH70UMseuOqWJlR+g5CBuiADXJL0CefRpPvhizhlmexmawazm3qh/ 05MMUTkl29ojhObWv1j0YJ4kvisf0zr5eXk0mWlOQdzlQFmGwthrQWy/UOcZoVC2AkqH aodQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=vWhCUDEK4dLVjhtUwOBGyFFlzdDD4yZCHVoj/ctuBFc=; b=hx9njoMWCsxubwC/FfajPMkfZDKr/7X3yoZ76qHJggpEnTCSccN/M/ocBmTHIUGgtr JV+vua2Ehuhy03Fl1UsnSt2cngOyuHXvJ8oEvYWXuA9cFmnRNUa0uxDZcM+fRdLsQ1on uKO3rQ2P1WEJ9muUdVhTDgbLtgb5MDfQS0WLZii3MfRgs0LKur0ObkpuLVcTmnnSw2VF OabqvRCSAccnGrGCFvXCC3Ycsv2wH14BJGs4mhLjvbZZoIGWEvuBegWGrWLkYHxKehgV JvyQwwByZThd8zcf4NsKhEIdl74+UNmzliKOYiMnTXZ4XnnvFCftUnzm+8Iftgiji/I3 1BgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=vWhCUDEK4dLVjhtUwOBGyFFlzdDD4yZCHVoj/ctuBFc=; b=LOE0RpqgVPGaaEvT+wfnFaEljodiYyKo4BUw4RgzqLm+lsB6uxlCMUuNgwNvEjXBeq yPXl3YWAvqMXDmVjk7ETCDxgwHJJJ2vT8QABhOLguxulOZWMVRNOvTSzK+lPHtND3bOM WfSWGjK8QSQ91qNV8uOWiS0sjeFh1tI1Chl9Smy5tyRKyBJiZsAkBLYb1i/GsP0SV6vh VgOAH7JIZwmx11lHf72icuxTr0AXyKl1JKc6udJVIyYjGEyU11Q+jllcqMzp/hwHKILY ClcxQDAR0mDFE/eWJSPjzqQ5/cDxlcuCiPaFrv4j7t4W6VjdntY02+dvVyww5tQqWztE Gvsg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531q1amGACDfpO3xAFqXI7tTjuWS0ELSQ4A+K/blQjtHin9X9Xmv vk9LqiCiufAmx/bl3Qhcsao= X-Google-Smtp-Source: ABdhPJzcMnxQQcrO+9vTy+ZPqgX7k8WKsZJPyjPAUUC3dkyHu1I+4esOI001e1PUMXHh8cWx3TfcMg== X-Received: by 2002:aca:5ed7:: with SMTP id s206mr2441581oib.23.1620571157987; Sun, 09 May 2021 07:39:17 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:1711:: with SMTP id i17ls3355504ota.11.gmail; Sun, 09 May 2021 07:39:16 -0700 (PDT) X-Received: by 2002:a9d:862:: with SMTP id 89mr13736235oty.67.1620571156149; Sun, 09 May 2021 07:39:16 -0700 (PDT) In-Reply-To: X-Original-Sender: Domi.Hz96-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:28313 Archived-At: ------=_Part_1668_868570170.1620571155412 Content-Type: multipart/alternative; boundary="----=_Part_1669_452237497.1620571155412" ------=_Part_1669_452237497.1620571155412 Content-Type: text/plain; charset="UTF-8" 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. ------=_Part_1669_452237497.1620571155412 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Unfortunately this results in the entire table being deleted by pandoc on m= y end?

John MacFarlane schrieb am Donnerstag, 6. Mai 2021 um 17:45:48 UTC+2:<= br/>

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=3D'foo'})
end

Dominik Heinz <domi...@gm= ail.com> writes:

> Hey,
> I use pandoc to convert from md to html. Is there a way to automat= ically=20
> add a div with a class around the table tag? Preferably with lua s= cripting?=20
> It doesn't seem like Table is a valid identifier?
>
> Thanks.
>
> --=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-discus..= .@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/212b= cc0a-2987-4217-8276-1d47e259b2e4n%40googlegroups.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/pandoc-discuss/2a0574fe-2470-4280-9a54-1987abda058dn%40googlegroups.= com.
------=_Part_1669_452237497.1620571155412-- ------=_Part_1668_868570170.1620571155412--