emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: ox-md export title block
Date: Fri, 23 Oct 2015 22:38:35 +0200	[thread overview]
Message-ID: <87fv11z5f8.fsf@gmx.us> (raw)
In-Reply-To: CAN_Dec_FXhjw8aay8gnwKQf==fa0GHqLh-umYT+XCid6EG3GMw@mail.gmail.com

Hi Matt,

Thanks for your patch.

Matt Price <moptop99@gmail.com> 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	other threads:[~2015-10-23 20:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-23 17:37 ox-md export title block Matt Price
2015-10-23 20:38 ` Rasmus [this message]
2015-10-23 21:22   ` Nick Dokos
2015-10-24  0:41     ` Matt Price
2015-10-24 11:49       ` Rasmus
2015-10-23 20:39 ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fv11z5f8.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).