From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: ox-md export title block Date: Fri, 23 Oct 2015 13:37:22 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001a113fb2006a89090522c910c8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpgHM-0000KC-KI for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 13:37:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpgHL-0002be-AK for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 13:37:24 -0400 Received: from mail-io0-x22a.google.com ([2607:f8b0:4001:c06::22a]:32832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpgHL-0002ba-5O for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 13:37:23 -0400 Received: by iodv82 with SMTP id v82so131059967iod.0 for ; Fri, 23 Oct 2015 10:37:22 -0700 (PDT) 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: Org Mode --001a113fb2006a89090522c910c8 Content-Type: multipart/alternative; boundary=001a113fb2006a89050522c910c6 --001a113fb2006a89050522c910c6 Content-Type: text/plain; charset=UTF-8 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? m --001a113fb2006a89050522c910c6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I don't know that much about = markdown, and I know there are many different flavours.=C2=A0 pandoc can ma= ke use of title, author, and date info in a markdown file -- from what i cn= a 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?

m

--001a113fb2006a89050522c910c6-- --001a113fb2006a89090522c910c8 Content-Type: text/x-patch; charset=US-ASCII; name="0001-ox-md-export-title-block.patch" Content-Disposition: attachment; filename="0001-ox-md-export-title-block.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ig3xwz0x0 ZGlmZiAtLWdpdCBhL2xpc3Avb3gtbWQuZWwgYi9saXNwL294LW1kLmVsCmluZGV4IGU0MjkxZTUu LjMyMTUzOWEgMTAwNjQ0Ci0tLSBhL2xpc3Avb3gtbWQuZWwKKysrIGIvbGlzcC9veC1tZC5lbApA QCAtNDY4LDEyICs0NjgsMjYgQEAgaG9sZGluZyBleHBvcnQgb3B0aW9ucy4iCiAgIDs7IGZvb3Ru b3RlcyB3aXRoIGF0IGxlYXN0IGEgYmxhbmsgbGluZS4KICAgKG9yZy10cmltIChvcmctaHRtbC1p bm5lci10ZW1wbGF0ZSAoY29uY2F0ICJcbiIgY29udGVudHMgIlxuIikgaW5mbykpKQogCis7Ozs7 IHRlbXBsYXRlCiAoZGVmdW4gb3JnLW1kLXRlbXBsYXRlIChjb250ZW50cyBpbmZvKQogICAiUmV0 dXJuIGNvbXBsZXRlIGRvY3VtZW50IHN0cmluZyBhZnRlciBNYXJrZG93biBjb252ZXJzaW9uLgog Q09OVEVOVFMgaXMgdGhlIHRyYW5zY29kZWQgY29udGVudHMgc3RyaW5nLiAgSU5GTyBpcyBhIHBs aXN0IHVzZWQKIGFzIGEgY29tbXVuaWNhdGlvbiBjaGFubmVsLiIKLSAgY29udGVudHMpCi0KKyAg KGNvbmNhdAorICAgOzsobWVzc2FnZSAoY29uY2F0IGluZm8pKQorICAgKGFuZCAocGxpc3QtZ2V0 IGluZm8gOndpdGgtYXV0aG9yKQorCShsZXQgKChhdXRob3IgKG9yZy1leHBvcnQtZGF0YSAocGxp c3QtZ2V0IGluZm8gOmF1dGhvcikgaW5mbykpKQorCSAgKGFuZCAob3JnLXN0cmluZy1udy1wIGF1 dGhvcikKKwkgICAgICAgKGNvbmNhdCAgIlwlICIgYXV0aG9yICJcbiIpKSkpCisgICAoYW5kIChw bGlzdC1nZXQgaW5mbyA6d2l0aC10aXRsZSkKKwkoY29uY2F0ICJcJSAiIChvcmctZXhwb3J0LWRh dGEgKHBsaXN0LWdldCBpbmZvIDp0aXRsZSkgaW5mbykgIlxuIikpCisgICAoYW5kIChwbGlzdC1n ZXQgaW5mbyA6d2l0aC1kYXRlKQorCShsZXQgKChkYXRlIChvcmctZXhwb3J0LWRhdGEgKG9yZy1l eHBvcnQtZ2V0LWRhdGUgaW5mbykgaW5mbykpKQorCSAgKGFuZCAob3JnLXN0cmluZy1udy1wIGRh dGUpCisJICAgICAgIChjb25jYXQgIlwlICIgZGF0ZSAiXG4iKSkpKQorICAgCisgICBjb250ZW50 cykKKyAgKQogCiAMCiA7OzsgSW50ZXJhY3RpdmUgZnVuY3Rpb24K --001a113fb2006a89090522c910c8-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: ox-md export title block Date: Fri, 23 Oct 2015 22:39:41 +0200 Message-ID: <87bnbpz5de.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpj69-0000IE-Gm for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 16:38:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zpj68-0006fo-Dk for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 16:38:01 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:60205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpj68-0006fY-6z for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 16:38:00 -0400 In-Reply-To: (Matt Price's message of "Fri, 23 Oct 2015 13:37:22 -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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matt Price Cc: Org Mode Hello, 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? Thank you for the patch. However, "ox-md.el" is for Vanilla Markdown, where such constructs do not exist. So it cannot be applied there. ISTR there are a few others export back-ends in contrib/ that may use this. You may also create ox-md-pandoc.el if it doesn't exist already. Regards, -- Nicolas Goaziou 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? From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: ox-md export title block Date: Fri, 23 Oct 2015 17:22:52 -0400 Message-ID: <87wpud700j.fsf@alphaville.usersys.redhat.com> References: <87fv11z5f8.fsf@gmx.us> 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]:56394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpjpr-0003NQ-JX for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 17:25:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zpjpo-0004uM-Fa for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 17:25:15 -0400 Received: from plane.gmane.org ([80.91.229.3]:34673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpjpo-0004u2-A7 for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 17:25:12 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zpjpg-0006Zf-CH for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 23:25:04 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Oct 2015 23:25:04 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 23 Oct 2015 23:25:04 +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 Nicolas Goaziou writes: > However, "ox-md.el" is for Vanilla Markdown, where such constructs do > not exist. So it cannot be applied there. > ISTR there are a few others export back-ends in contrib/ that may use > this. You may also create ox-md-pandoc.el if it doesn't exist already. Rasmus writes: > 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. > Great minds always meet ;-) -- Nick From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: ox-md export title block Date: Fri, 23 Oct 2015 20:41:02 -0400 Message-ID: References: <87fv11z5f8.fsf@gmx.us> <87wpud700j.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0115ec10934adb0522cefb3c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpmtN-0001ot-4Z for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 20:41:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpmtL-0005TD-OH for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 20:41:05 -0400 Received: from mail-ig0-x229.google.com ([2607:f8b0:4001:c05::229]:35629) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpmtL-0005St-Iy for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 20:41:03 -0400 Received: by igbkq10 with SMTP id kq10so27141265igb.0 for ; Fri, 23 Oct 2015 17:41:03 -0700 (PDT) In-Reply-To: <87wpud700j.fsf@alphaville.usersys.redhat.com> 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 Cc: Org Mode --089e0115ec10934adb0522cefb3c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, Oct 23, 2015 at 5:22 PM, Nick Dokos wrote: > Nicolas Goaziou writes: > > > However, "ox-md.el" is for Vanilla Markdown, where such constructs do > > not exist. So it cannot be applied there. > > > ISTR there are a few others export back-ends in contrib/ that may use > > this. You may also create ox-md-pandoc.el if it doesn't exist already. > > Rasmus writes: > > > I don't think it's inadequate, but I also don't know if this should be > > part of ox-md in it=E2=80=99s present form. > > > > The original md specification doesn=E2=80=99t seem to support this synt= ax: > > > > 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. > > > > Great minds always meet ;-) > > -- > Nick > > > OK, I've written a totally primitive ox-md-pandoc.e. For now it's up on github, because it's veyr clumsy and doesn't support enough of the pandoc syntax. I put it here: https://github.com/titaniumbones/org-md-pandoc I would love it if other people would help me improve it. I put a few ideas in the README. Happy to add to contrib if/when people think it's good enough to be of general use. --089e0115ec10934adb0522cefb3c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Fri, Oct 23, 2015 at 5:22 PM, Nick Dokos <ndokos@gmail.com> wrote:
Nicolas Goaziou <mail@= nicolasgoaziou.fr> writes:

> However, "ox-md.el" is for Vanilla Markdown, where such cons= tructs do
> not exist. So it cannot be applied there.

> ISTR there are a few others export back-ends in contrib/ that may use<= br> > this. You may also create ox-md-pandoc.el if it doesn't exist alre= ady.

Rasmus <rasmus@= gmx.us> writes:

> I don't think it's inadequate, but I also don't know if th= is should be
> part of ox-md in it=E2=80=99s present form.
>
> The original md specification doesn=E2=80=99t seem to support this syn= tax:
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 https://da= ringfireball.net/projects/markdown/syntax
>
> (I searched for % and author).
>
> Would it be recognized by say Github or Stack Exchange?=C2=A0 On Githu= b
> "^% Rasmus\n"=C2=A0 is printed as just that, so I guess not.=
>
> Perhaps it would be better to define a new backend, ox-md-pandoc.el, o= r
> add a "#+MARKDOWN_FLAVOR" keyword to condition such insertio= ns on.
>

Great minds always meet ;-)

--
Nick


OK, I've written a totally primitive ox-md-pandoc.e.= =C2=A0 For now it's up on github, because it's veyr clumsy and does= n't support enough of the pandoc syntax.=C2=A0 I put it here:

https://github.com= /titaniumbones/org-md-pandoc

I = would love it if other people would help me improve it. I put a few ideas i= n the README.=C2=A0 Happy to add to contrib if/when people think it's g= ood enough to be of general use.=C2=A0
--089e0115ec10934adb0522cefb3c-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: ox-md export title block Date: Sat, 24 Oct 2015 13:49:48 +0200 Message-ID: <87vb9wzdsz.fsf@gmx.us> References: <87fv11z5f8.fsf@gmx.us> <87wpud700j.fsf@alphaville.usersys.redhat.com> 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]:45926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpxPk-0004wl-Jr for emacs-orgmode@gnu.org; Sat, 24 Oct 2015 07:55:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpxPh-0005sC-DF for emacs-orgmode@gnu.org; Sat, 24 Oct 2015 07:55:12 -0400 Received: from plane.gmane.org ([80.91.229.3]:60562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpxPh-0005s4-77 for emacs-orgmode@gnu.org; Sat, 24 Oct 2015 07:55:09 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZpxPb-0001AC-9t for emacs-orgmode@gnu.org; Sat, 24 Oct 2015 13:55:03 +0200 Received: from x590e1e01.dyn.telefonica.de ([89.14.30.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 24 Oct 2015 13:55:03 +0200 Received: from rasmus by x590e1e01.dyn.telefonica.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 24 Oct 2015 13:55: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 Matt Price writes: > OK, I've written a totally primitive ox-md-pandoc.e. For now it's up on > github, because it's veyr clumsy and doesn't support enough of the pandoc > syntax. I put it here: > > https://github.com/titaniumbones/org-md-pandoc > > I would love it if other people would help me improve it. I put a few ideas > in the README. Happy to add to contrib if/when people think it's good > enough to be of general use. If you want to eventually add it to Org, you should pay attention to copyright assignment, or it may forever live in contrib, much like ox-koma-letter.el (which is, I must say, extremely inconvenient, at least for me). If you care about this issue, perhaps you’ll want to check how company-mode organizes itself on teh githubs. Rasmus -- Hvor meget poesi tror De kommer ud af et glas isvand?