From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/15022 Path: news.gmane.org!not-for-mail From: "kurt.pfeifle via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: Markdown, tables and CSV Date: Tue, 31 May 2016 07:28:11 -0700 (PDT) Message-ID: <3a313532-aefb-4eb0-b9c5-88065cd8c85a@googlegroups.com> References: <047d7b86ebe83c062b05332eab9b@google.com> <20BF19CB-A2B0-4B19-A749-D750CDD89736@martinfenner.org> <001833c9-e40d-4079-ba79-c88c852780a5@googlegroups.com> <27f2fe62-8115-4513-b13a-c995f625f60d@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_65_1431099926.1464704891304" X-Trace: ger.gmane.org 1464704897 8260 80.91.229.3 (31 May 2016 14:28:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 31 May 2016 14:28:17 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDO5LOXQ2AARB656W25AKGQETZHRKDQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue May 31 16:28:16 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pa0-f61.google.com ([209.85.220.61]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b7keT-0004Hl-EW for gtp-pandoc-discuss@m.gmane.org; Tue, 31 May 2016 16:28:13 +0200 Original-Received: by mail-pa0-f61.google.com with SMTP id gp3sf43733889pac.1 for ; Tue, 31 May 2016 07:28:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=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=k8asiaDQtHCDvLnu26hAMpVeaucs7bZQdNAOlyuFmAc=; b=gOB3wvcHaGCw7yLzLqONtRpAtR151rXxKu8+vtEvU58oz7B+tYgBQkbUgpUwfjs+3Z OO8FsG0iRo4XOpfHth8keVqq+5+YidK8j6YD0KgzeH8JQvFZNHUEd4ed7eHY/T9Pvgy9 hQvQkjm+arZZTs2Ft9UjavmLxt3id5DhB7xZM0UXeY4Mu/ABbOxYsAPIg7yAJd3NXoPb 6k5cqlJj8mjj7htqLBKCf9VvKJVQ5lE96SJLYxM4G/XrT3HS3K7vpjV6NnQyFsYIdmhd 5h3LvhVUE0SRJIHo/PUOKwZYG8CBv7+AR9+Z//5H78reliUYU1Ca1J6HSP4BNCFd6Tcu qiYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=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=k8asiaDQtHCDvLnu26hAMpVeaucs7bZQdNAOlyuFmAc=; b=hp8NX/QjYI+rVYEyWtuk1aha0To6I4BCEHF4PqHfNlDBNgQJOp1BZSi2RIdvrL2G5K qOWc10XmT170BA3wFutYSNoEglwhisQxYJrNn56nmSo3NCoZx/ytTXNqyuNBdZ11oeQu nEURTQffFHceZtS/4t2TQpzqp4F+0fzpUIUSHdw0kNgLx/SiF2mzT9n7cv3Dxw9DDMw1 whwM69FVA3GpL2Ffe6JiJKIQ7i1qlmlV1GnWQ/iF/fpj5fkDc0Orm7ZhTSVEm2h9wxXP ALCr0HgsIAMYJn+eGfMD7qKoJoYrA+YZVTuuZQxXVAUXA1ALoJBLw5L+ML2dPhNn7c30 P9YA== X-Gm-Message-State: ALyK8tK4skNT/XWmAHUJKCKuPdcxplwWGWdKI8GbOBDGGih7s7CeBaoK+CIPPLPgJwN7/Q== X-Received: by 10.157.7.17 with SMTP id 17mr234496ote.5.1464704892530; Tue, 31 May 2016 07:28:12 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.12.42 with SMTP id 39ls1713011otr.13.gmail; Tue, 31 May 2016 07:28:11 -0700 (PDT) X-Received: by 10.157.8.248 with SMTP id 111mr368600otf.16.1464704891812; Tue, 31 May 2016 07:28:11 -0700 (PDT) In-Reply-To: <27f2fe62-8115-4513-b13a-c995f625f60d-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: kurt.pfeifle-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org X-Original-From: kurt.pfeifle-gM/Ye1E23mwN+BqQ9rBEUg@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-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:15022 Archived-At: ------=_Part_65_1431099926.1464704891304 Content-Type: multipart/alternative; boundary="----=_Part_66_699676401.1464704891304" ------=_Part_66_699676401.1464704891304 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am Montag, 30. Mai 2016 09:47:50 UTC+2 schrieb mb21: > > Well, in the end it is the pandoc markdown writes that is used to generat= e=20 > the tables, so you're on the right track with -t markdown+multiline_table= s.=20 > However, unfortunately the logic is a bit more complicated, see=20 > https://github.com/jgm/pandoc/blob/master/src/Text/Pandoc/Writers/Markdow= n.hs#L444.=20 > Since all table-options are enabled by default, you have to turn OFF the= =20 > kind of tables you don't want > Aaaaaahhhh... (and now I even vaguely remember that I had stumbled across= =20 this item before, but my leaky brain + memory had forgotten it again for=20 good. Thanks for the reminder. I'll have to re-visit this topic again in the near= =20 future. =20 > , e.g. to get pipe-tables: pandoc --filter pandoc-placetable -t=20 > markdown-simple_tables > I agree that this is not optimal, but this behaviour should be changed in= =20 > the markdown writer, not the filter... > > On Sunday, May 29, 2016 at 5:59:49 PM UTC+2, kurt.p...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org=20 > wrote: >> >> Am Sonntag, 29. Mai 2016 14:45:35 UTC+2 schrieb mb21: >> >> @Kurt, pandoc-placetable works perfectly to convert csv to markdown tabl= e=20 >>> syntax (and any other output format where pandoc supports generating=20 >>> tables):=20 >>> pandoc --filter pandoc-placetable -t markdown >>> >>> Sorry, I did not intend to mis-represent what pandoc-placetable=20 >> currently can do and what it cannot. >> >> I know it can convert to Markdown tables. But (AFAIU) it can generate=20 >> only one type of table: simple_table. >> However, with pandoc-csv2table I can generate simple_table,=20 >> multiline_table, pipe_table and grid_table types =E2=80=94 simply by add= ing it=20 >> into the code block metadata: {.table header=3D"yes" type=3D"grid" ....}= . >> >> I tried to get the same thing with pandoc --filter pandoc-placetable -t= =20 >> markdown+multiline_tables, but it didn=E2=80=99t work. >> >> (Maybe I=E2=80=99m missing something =E2=80=94 then please tell me.) >> > =20 > >>>> =20 >>>> =E2=80=8B=E2=80=8B >>>> >>> --=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 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/3a313532-aefb-4eb0-b9c5-88065cd8c85a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_66_699676401.1464704891304 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


Am Montag, 30. Mai 2016 09:47:50 UTC+2 schrieb mb2= 1:
Well, in th= e end it is the pandoc markdown writes that is used to generate the tables,= so you're on the right track with -t markdown+multiline_tables. Howeve= r, unfortunately the logic is a bit more complicated, see=C2=A0https://github.com/jgm/pandoc/blob= /master/src/Text/Pandoc/Writers/Markdown.hs#L444. Since all t= able-options are enabled by default, you have to turn OFF the kind of table= s you don't want

Aaaaaahhhh... (a= nd now I even vaguely remember that I had stumbled across this item before,= but my leaky brain + memory had forgotten it again for good.
Thanks for the reminder. I'll have to re-visit this topic a= gain in the near future.
=C2=A0
, e.g. to get pipe-tables: pandoc --filte= r pandoc-placetable -t markdown-simple_tables
I agree that this is not = optimal, but this behaviour should be changed in the markdown writer, not t= he filter...

On Sunday, May 29, 2016 at 5:59:49 PM UTC+2, ku= rt.p...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org wrote:

Am Sonntag, 29. Mai = 2016 14:45:35 UTC+2 schrieb mb21:

@Kurt, pandoc-placetable works perf= ectly to convert csv to markdown table syntax (and any other output format = where pandoc supports generating tables):=C2=A0
pandoc --filter pandoc-placetable -t markdown

Sorry, I did not intend to mis-repr= esent what pandoc-placetable currently can do and w= hat it cannot.

I know it can convert to Markdown t= ables. But (AFAIU) it can generate only one type of table: simple_table.
However, with pandoc-csv2table I can generate simple_table, = multiline_table, pipe_table and grid_table types =E2=80=94 simply by adding it into the code b= lock metadata: {.table header=3D"yes" type=3D&qu= ot;grid" ....}.

I tried to get the same thing with = pandoc --filter pandoc-placetable -t markdown+multiline_ta= bles, but it didn=E2=80=99t work.

(Maybe I=E2=80=99m missing somethin= g =E2=80=94 then please tell me.)

<= /blockquote>
=C2=A0
<= div dir=3D"ltr">
=E2=80=8B=E2= =80=8B
=

--
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://groups.google.com/d/= msgid/pandoc-discuss/3a313532-aefb-4eb0-b9c5-88065cd8c85a%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_66_699676401.1464704891304-- ------=_Part_65_1431099926.1464704891304--