From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Davis Subject: Re: exporting markdown with tables Date: Sat, 03 Jun 2017 12:46:33 -0400 Message-ID: <1496508393.398979.997639488.57C94D91@webmail.messagingengine.com> References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_----------=_14965083933989790" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHCCD-0002Hn-Se for emacs-orgmode@gnu.org; Sat, 03 Jun 2017 12:46:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHCCA-0005x1-RL for emacs-orgmode@gnu.org; Sat, 03 Jun 2017 12:46:37 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:53865) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dHCCA-0005vx-GU for emacs-orgmode@gnu.org; Sat, 03 Jun 2017 12:46:34 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Vicente Vera Cc: emacs-orgmode This is a multi-part message in MIME format. --_----------=_14965083933989790 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" Thanks, Vincente. I'm specifically aiming at the Markdown syntax supported by the Editorial app, which does include markup for tables. Unfortunately, it looks like Editorial's Markdown doesn't use the initial '|', so simply exporting the org markup won't work without some editing. Thanks! -pd On Sat, Jun 3, 2017, at 12:31 PM, Vicente Vera wrote: > There are several Markdown "forks" which have different sets of > features.> > AFAIK the markdown exporter in Org is based upon John Gruber's > Markdown, which does not include a syntax for tables. Thus all tables> in Org documents get exported as HTML. > > A workaround is to wrap your Org tables as: > > #+BEGIN_EXPORT md > | Name | Years | > | Edward | 44 | > | Sylvia | 45 | > #+END_EXPORT > > On export to Markdown the tables will be kept unmodified as Org > syntax.> > It is important that you know which flavor of Markdown you're > targeting, because not all versions accept tables in Org syntax. > Pandoc's Markdown have a similar syntax for "pipe tables". However, > you may type all tables in any syntax accepted by your Markdown > version and keep them wrapped in #+BEGIN_EXPORT tags. > > 2017-06-03 13:41 GMT+00:00 Peter Davis : > > > > I'd like to be able to move easily between org-mode and the IOS app > > Editorial, which is mainly based around markdown syntax. I can> > easily export markdown from org-mode, but the tables seems to come > > through as straight HTML, as opposed to markdown's table> > syntax. This makes it more difficult to edit the resulting files. > > > > Is there a way to get org to export to markdown using md's table > > syntax?> > > > (FWIW, I tried using pandoc, but this just removed the table syntax > > altogether, so an entire table would just run together into a> > paragraph of gibberish.) > > > > Thanks, > > -pd > > > > -- Peter Davis www.techcurmudgeon.com --_----------=_14965083933989790 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset="utf-8"
Thanks, Vincente.

I'm specifically aiming at the Markdown syntax supported by the Editorial app, which does include markup for tables. Unfortunately, it looks like Editorial's Markdown doesn't use the initial '|', so simply exporting the org markup won't work without some editing.

Thanks!
-pd

On Sat, Jun 3, 2017, at 12:31 PM, Vicente Vera wrote:
> There are several Markdown "forks" which have different sets of features.
>
> AFAIK the markdown exporter in Org is based upon John Gruber's
> Markdown, which does not include a syntax for tables. Thus all tables
> in Org documents get exported as HTML.
>
> A workaround is to wrap your Org tables as:
>
> #+BEGIN_EXPORT md
> | Name   | Years |
> | Edward |    44 |
> | Sylvia |    45 |
> #+END_EXPORT
>
> On export to Markdown the tables will be kept unmodified as Org syntax.
>
> It is important that you know which flavor of Markdown you're
> targeting, because not all versions accept tables in Org syntax.
> Pandoc's Markdown have a similar syntax for "pipe tables". However,
> you may type all tables in any syntax accepted by your Markdown
> version and keep them wrapped in #+BEGIN_EXPORT tags.
>
> 2017-06-03 13:41 GMT+00:00 Peter Davis <pfd@pfdstudio.com>:
> >
> > I'd like to be able to move easily between org-mode and the IOS app Editorial, which is mainly based around markdown syntax. I can
> > easily export markdown from org-mode, but the tables seems to come through as straight HTML, as opposed to markdown's table
> > syntax. This makes it more difficult to edit the resulting files.
> >
> > Is there a way to get org to export to markdown using md's table syntax?
> >
> > (FWIW, I tried using pandoc, but this just removed the table syntax altogether, so an entire table would just run together into a
> > paragraph of gibberish.)
> >
> > Thanks,
> > -pd
> >
> >


--
  Peter Davis
  www.techcurmudgeon.com

--_----------=_14965083933989790--