From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] Add TITLE export to ox-md Date: Sat, 26 Aug 2017 10:11:30 +0200 Message-ID: <87y3q6wxxp.fsf@nicolasgoaziou.fr> References: <87fuchzllk.fsf@gmail.com> <87a82p1fey.fsf@nicolasgoaziou.fr> <87ziaphvu7.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlWBr-0006vh-Ch for emacs-orgmode@gnu.org; Sat, 26 Aug 2017 04:11:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlWBo-0004Ug-M8 for emacs-orgmode@gnu.org; Sat, 26 Aug 2017 04:11:35 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:53658) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dlWBo-0004UD-Fg for emacs-orgmode@gnu.org; Sat, 26 Aug 2017 04:11:32 -0400 In-Reply-To: <87ziaphvu7.fsf@gmail.com> (Jay Kamat's message of "Thu, 24 Aug 2017 10:41:20 -0400") 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: Jay Kamat Cc: emacs-org list , Kaushal Modi Hello, Jay Kamat writes: > I agree that vanilla markdown does not support title, but if ox-md does not > support any form of title, then there is disparity between the output of other > org exports and the markdown exporter. I would like to solve that disparity if > possible. The point of "md" export back-end is not to provide the same features as full-fledged ones like "latex" or "html". I wrote it to take care of the boring stuff of markdown syntax. Anyone willing to write a back-end with a different Markdown flavour just needs to concentrate of the differences between the original syntax. IOW, discrepancy here is not a concern. > From the markdown that I've worked with, this isn't the case. The > original markdown tool (https://daringfireball.net/projects/markdown/) > dosen't seem to output filename titles in it's export, so I wouldn't > think it's part of the vanilla standard. I don't think either. >> Maybe we eventually end up with 3 options (something like below): >> >> - org-md-title-as-h1 >> - org-md-subtitle-as-h2 >> - org-md-heading-offset > > that's probably the best idea I've heard so far, since I would imagine most > people would either not want to have two H1 headings right after each other, or > not want to have their headings shifted. Having such options would allow people > to pick the scenario they want (shifting headings under the title, including the > title but no offset, or not including the title at all). I don't think this is a good idea, because it makes "ox-md.el" less neutral. That could get in the way of other back-ends. AFAIC, I think ... or even
...
...
, as you suggested, are better choices. Regards, -- Nicolas Goaziou