From: Carsten Dominik <carsten.dominik@gmail.com>
To: Brice Waegenire <brice.wge@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Markdown: Add publishing in markdown
Date: Wed, 25 Sep 2013 08:54:27 +0200 [thread overview]
Message-ID: <4F7A396A-54D7-4DF1-AA8C-71D19A1E7B48@gmail.com> (raw)
In-Reply-To: <CAL5NfX2cVBMSnKnAFMzXKeS-RKfvd6kyTBS1dGFN=S6sxk6eEw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1064 bytes --]
Hi Brice,
applied, thank you!
- Carsten
On 22.9.2013, at 20:32, Brice Waegenire <brice.wge@gmail.com> wrote:
> * lisp/ox-md.el
>
> Add the possibility to publish in Markdown by using the function
> org-md-publish-to-md.
>
> TINYCHANGE
> ---
> diff --git a/lisp/ox-md.el b/lisp/ox-md.el
> index f7e4875..71759ac 100644
> --- a/lisp/ox-md.el
> +++ b/lisp/ox-md.el
> @@ -31,7 +31,7 @@
>
> (eval-when-compile (require 'cl))
> (require 'ox-html)
> -
> +(require 'ox-publish)
>
> ^L
> ;;; User-Configurable Variables
> @@ -477,6 +477,17 @@ Return output file's name."
> (org-export-to-file 'md outfile async subtreep visible-only)))
>
>
> +;;;###autoload
> +(defun org-md-publish-to-md (plist filename pub-dir)
> + "Publish an org file to Markdown.
> +
> +FILENAME is the filename of the Org file to be published. PLIST
> +is the property list for the given project. PUB-DIR is the
> +publishing directory.
> +
> +Return output file name."
> + (org-publish-org-to 'md filename ".md" plist pub-dir))
> +
> (provide 'ox-md)
>
> ;; Local variables:
>
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
next prev parent reply other threads:[~2013-09-25 6:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-22 18:32 [PATCH] Markdown: Add publishing in markdown Brice Waegenire
2013-09-25 6:54 ` Carsten Dominik [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-09-23 15:44 [PATCH] Markdown: add " Brice Waegenire
2013-09-23 22:01 ` 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=4F7A396A-54D7-4DF1-AA8C-71D19A1E7B48@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=brice.wge@gmail.com \
--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).