From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/15972 Path: news.gmane.org!.POSTED!not-for-mail From: BP Jonsson Newsgroups: gmane.text.pandoc Subject: Re: Using all the features of tables in pandoc Date: Thu, 10 Nov 2016 20:51:23 +0100 Message-ID: References: <8537aab1-b977-4d4f-b487-bcdf2b0e9874@googlegroups.com> <0c92d36b-7fbe-4ab4-8a35-f090b7299bea@googlegroups.com> <20161110160402.GA9303@Administrateurs-iMac-3.local> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c0bad16c8bc480540f7b200 X-Trace: blaine.gmane.org 1478807517 28343 195.159.176.226 (10 Nov 2016 19:51:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 10 Nov 2016 19:51:57 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDIY76M674FRBPE7SPAQKGQEQ23SIDA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Nov 10 20:51:52 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pa0-f59.google.com ([209.85.220.59]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4vNa-00033w-Dz for gtp-pandoc-discuss@m.gmane.org; Thu, 10 Nov 2016 20:51:22 +0100 Original-Received: by mail-pa0-f59.google.com with SMTP id yw6sf96859330pac.0 for ; Thu, 10 Nov 2016 11:51:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender:mime-version:in-reply-to:references: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=t5PEuhZXTPqepobsZn3qD4JWIaLvWx0ue58ehNJhoXE=; b=euzS+9gsvus4doEcAYbT0ZdLx5y9TOuBZX0o1oIJYcoh0s+bReMcG8QlBVas8/pfUC 4q0yYGB0KPayJd9pSOq5LoN0fovIEc+z82SXV0bKsrcg8MpGji0jYJgIGuDjBUvO0jdG 0M8wBr20jwOnpvCjOGyaVDghzgRAbAIK1xwcuHUA1PMF7kab5/oTSuFwzwYbF01HSWHw 0QLGi11/7pu2iL3FkdAgrFfsAhNElYOkUV8Gm6YlNwsRflo6cTg42OhTXPdshC+qRaR/ uCjCvQg8e0907J+jtQU5noch0O0dzm+uioER7XPs37cOX3VIw4KikxdY6RWa+XGJVpdX fBGA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references: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=t5PEuhZXTPqepobsZn3qD4JWIaLvWx0ue58ehNJhoXE=; b=XGd1JSr9ItspZN97GXmVjoejaAQtL78Ncb+ERNJLzpU/jMvOmXUQ/EyfaxxrZ0OtEx /To+5Oq0m+j1a+3l0BhcqEAaDBVPSRHBV4IZRq/TO327FLfxJUR9nfp+jWlSOPFCyWSt 1OjxvI+07r1OdXbj25xNpJuEanoUX78q93ZW4T9Zbh5cS1Ev2lx59R9IPHjzBCXdRL8a 4O7Lj56SByIFa+co+AarSuQnNUVPT0gxJ0r6aItnxvGKItSzVq+Zog82FIN1agoYLVVm 2VTXi7YgeNiKBbauJbZw6HuTBz55MChlR+2aBPAy4wuTZb21uYYqjPR6wAFBmH534Yjl YmsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=sender:x-gm-message-state:mime-version:in-reply-to:references: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=t5PEuhZXTPqepobsZn3qD4JWIaLvWx0ue58ehNJhoXE=; b=BlUrYjxfxBUxb+qLQ0GYbz3q0nVwvI3qPxy8z76nHWm1iV/PvjLLviC/DBPw4Ti+UI TKEI/OROoS9p1rrjdCzg5lsftx7ovtW0mObALMGbbDitC2db+qtoSHdX2iwRblfSJcnL B6BzpEYACFdlEbzvKL6HzOQY5AHtlWxpGxj3BjASqLnHa9HKIUSXEPTF4Dw4/83jZZ5Q NA+7mqCzOrrHGPDsKysCWJU7pm/Y/G3/HzqeQ6FQMn2HsjPbCAwRLJk8ixu5ptKPB/wm QsBMyhnEYlcIvvVRHUA4w6TSP4v1MZaHFCdccyIH18/p1s+BShTGrW4LP0y971gyU/km m9lw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ABUngvcoHlu14Ftv7iCLWbpGh5cJWWkXEQyNvUIPSatmCaNMEHCH77WZQKJKDFK6GuYjmQ== X-Received: by 10.36.65.146 with SMTP id b18mr498625itd.0.1478807485305; Thu, 10 Nov 2016 11:51:25 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.107.136.230 with SMTP id s99ls35780ioi.49.gmail; Thu, 10 Nov 2016 11:51:24 -0800 (PST) X-Received: by 10.99.99.133 with SMTP id x127mr160202pgb.58.1478807484491; Thu, 10 Nov 2016 11:51:24 -0800 (PST) Original-Received: from mail-it0-x243.google.com (mail-it0-x243.google.com. [2607:f8b0:4001:c0b::243]) by gmr-mx.google.com with ESMTPS id c68si2535350ith.1.2016.11.10.11.51.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Nov 2016 11:51:24 -0800 (PST) Received-SPF: pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4001:c0b::243 as permitted sender) client-ip=2607:f8b0:4001:c0b::243; Original-Received: by mail-it0-x243.google.com with SMTP id e187so5654812itc.0 for ; Thu, 10 Nov 2016 11:51:24 -0800 (PST) X-Received: by 10.107.202.69 with SMTP id a66mr8814906iog.170.1478807484151; Thu, 10 Nov 2016 11:51:24 -0800 (PST) Original-Received: by 10.107.176.138 with HTTP; Thu, 10 Nov 2016 11:51:23 -0800 (PST) Original-Received: by 10.107.176.138 with HTTP; Thu, 10 Nov 2016 11:51:23 -0800 (PST) In-Reply-To: <20161110160402.GA9303-BKjuZOBx5Kn2N3qrpRCZGbhGAdq7xJNKhPhL2mjWHbk@public.gmane.org> X-Original-Sender: bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com; spf=pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4001:c0b::243 as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE 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.org gmane.text.pandoc:15972 Archived-At: --94eb2c0bad16c8bc480540f7b200 Content-Type: text/plain; charset=UTF-8 On a related note: is there some combination of extension settings which one can use to get the markdown writer to output only or prefer grid, multiline or pipe tables? I dimly remember having asked this before but can't recall the answer. I'm thinking maybe an option `--tables=STRING` where a value `pipe` would cause all tables which can be rendered as pipe tables to be so rendered, and similar for `multi` and `grid`, while a value like `pipe,grid` would cause all tables which can't be rendered as pipe tables to be rendered as grid tables, and similar for `simple,grid`. Den 10 nov 2016 17:04 skrev "John MacFarlane" : > I think it's a good idea. So, for example, > > +------------+------------+-----------+ > | Header 1 | Header 2 | Header 3 | > +:==========:+===========:+===========+ > | centered | right | default | > +------------+------------+-----------+ > > All current grid tables would still work. > > Does anyone see any problems with this? > > +++ Kolen Cheung [Nov 10 16 06:38 ]: > >> So to put it in other words, is it possible to extend the grid table >> syntax that borrows the alignment from pip tables? This way, all features >> supported by the AST has a markdown representation. (And say when the >> internal AST extends to include span, the gird table can easily be >> extended, and will still be able to represent everything the AST does). >> >> -- >> 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit https://groups.google.com/d/ms >> gid/pandoc-discuss/0c92d36b-7fbe-4ab4-8a35-f090b7299bea%40go >> oglegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/ms > gid/pandoc-discuss/20161110160402.GA9303%40Administrateurs-iMac-3.local. > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAFC_yuTgx4mjWBsC%2BCycEZPmkZi0ZCh-sXS2Gnf0bSNvKXxKBA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout. --94eb2c0bad16c8bc480540f7b200 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On a related note: is there some combination of extension se= ttings which one can use to get the markdown writer to output only or prefe= r grid, multiline or pipe tables? I dimly remember having asked this before= but can't recall the answer.

I'm thinking maybe an option `--tables=3DSTRING` where a= value `pipe` would cause all tables which can be rendered as pipe tables t= o be so rendered, and similar for `multi` and `grid`, while a value like `p= ipe,grid` would cause all tables which can't be rendered as pipe tables= to be rendered as grid tables, and similar for `simple,grid`.


Den 10 nov 2016 1= 7:04 skrev "John MacFarlane" <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>:
I think it's a good idea.=C2=A0 So, for example,

=C2=A0 =C2=A0+------------+------------+-----------+
=C2=A0 =C2=A0| Header 1=C2=A0 =C2=A0| Header 2=C2=A0 =C2=A0| Header 3=C2=A0= |
=C2=A0 =C2=A0+:=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D:+=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D:+=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+
=C2=A0 =C2=A0| centered=C2=A0 =C2=A0| right=C2=A0 =C2=A0 =C2=A0 | default= =C2=A0 =C2=A0|
=C2=A0 =C2=A0+------------+------------+-----------+

All current grid tables would still work.

Does anyone see any problems with this?

+++ Kolen Cheung [Nov 10 16 06:38 ]:
So to put it in other words, is it possible to extend the grid table syntax= that borrows the alignment from pip tables? This way, all features support= ed by the AST has a markdown representation. (And say when the internal AST= extends to include span, the gird table can easily be extended, and will s= till be able to represent everything the AST does).

--
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 pandoc-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm. To view this discussion on the web visit https://groups.google.com/d/ms= gid/pandoc-discuss/0c92d36b-7fbe-4ab4-8a35-f090b7299bea%40go= oglegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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
pandoc-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm. To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/20161110160402.GA9303%40Administrateurs-iMac= -3.local.
For more options, visit https://groups.google.com/d/optout.

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://group= s.google.com/d/msgid/pandoc-discuss/CAFC_yuTgx4mjWBsC%2BCycEZPmkZi0ZCh-sXS2= Gnf0bSNvKXxKBA%40mail.gmail.com.
For more options, visit http= s://groups.google.com/d/optout.
--94eb2c0bad16c8bc480540f7b200--