From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: ox-md export title block Date: Fri, 23 Oct 2015 22:38:35 +0200 Message-ID: <87fv11z5f8.fsf@gmx.us> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpj7U-0000tk-JK for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 16:39:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zpj7R-00070X-BS for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 16:39:24 -0400 Received: from plane.gmane.org ([80.91.229.3]:60380) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpj7R-00070S-4y for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 16:39:21 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zpj79-0004xi-4J for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 22:39:03 +0200 Received: from 46.166.186.251 ([46.166.186.251]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Oct 2015 22:39:03 +0200 Received: from rasmus by 46.166.186.251 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Oct 2015 22:39:03 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Matt, Thanks for your patch. Matt Price writes: > I don't know that much about markdown, and I know there are many different > flavours. pandoc can make use of title, author, and date info in a > markdown file -- from what i cna tell, it expects a "title block atthe head > of a file (http://pandoc.org/README.html#extension-pandoc_title_block) > > % author > % title > % date > > I have a simple, inadequate patch to ox-md-template that inserts this info. > It's a start maybe for a better patch? I don't think it's inadequate, but I also don't know if this should be part of ox-md in it’s present form. The original md specification doesn’t seem to support this syntax: https://daringfireball.net/projects/markdown/syntax (I searched for % and author). Would it be recognized by say Github or Stack Exchange? On Github "^% Rasmus\n" is printed as just that, so I guess not. Perhaps it would be better to define a new backend, ox-md-pandoc.el, or add a "#+MARKDOWN_FLAVOR" keyword to condition such insertions on. Cheers, Rasmus -- What will be next?