From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Bormann Subject: Using orgtbl-mode with markdown: hfmt1 Date: Tue, 12 Sep 2017 15:15:06 +0200 Message-ID: Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drleZ-000252-BZ for emacs-orgmode@gnu.org; Tue, 12 Sep 2017 09:55:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drleU-0006yw-DR for emacs-orgmode@gnu.org; Tue, 12 Sep 2017 09:55:03 -0400 Received: from mailhost.informatik.uni-bremen.de ([2001:638:708:30c9::12]:58721) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1drleU-0006vQ-3G for emacs-orgmode@gnu.org; Tue, 12 Sep 2017 09:54:58 -0400 Received: from submithost.informatik.uni-bremen.de (submithost.informatik.uni-bremen.de [134.102.201.11]) by mailhost.informatik.uni-bremen.de (8.14.5/8.14.5) with ESMTP id v8CDF8Qx017837 for ; Tue, 12 Sep 2017 15:15:09 +0200 (CEST) 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: emacs-orgmode@gnu.org As is, orgtbl-mode is a great addition to markdown-mode. There is one snag: The markdown table syntax isn=E2=80=99t fully standardized. A number of implementations react unfavorable to the + characters that = orgtbl-mode uses as a column/row separator in the line separating the = header from the body of the table; they prefer the | character here as = well. So I apply this little patch in org-table-align each time I install a = new version of org-mode: org-table.el 874c158 < (hfmt1 "-%s-+")) --- > (hfmt1 "-%s-|")) ; HACK: + =E2=9E=94 | Works perfectly. But it would be nice not to have to apply this patch = each time I update. Would it be possible to make hfmt1 configurable? (Preferably, using a buffer-local variable so I don=E2=80=99t have to = break tables in org-mode proper?) Gr=C3=BC=C3=9Fe, Carsten