emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] ox-md export title block


From: Rasmus
Subject: Re: [O] ox-md export title block
Date: Fri, 23 Oct 2015 22:38:35 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Hi Matt,

Thanks for your patch.

Matt Price <address@hidden> 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?






reply via email to

[Prev in Thread] Current Thread [Next in Thread]