emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] Markdown: Add publishing in markdown
@ 2013-09-22 18:32 Brice Waegenire
  2013-09-25  6:54 ` Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Brice Waegenire @ 2013-09-22 18:32 UTC (permalink / raw)
  To: emacs-orgmode

* 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:

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] Markdown: add publishing in markdown
@ 2013-09-23 15:44 Brice Waegenire
  2013-09-23 22:01 ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: Brice Waegenire @ 2013-09-23 15:44 UTC (permalink / raw)
  To: emacs-orgmode

* 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:

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Markdown: add publishing in markdown
  2013-09-23 15:44 [PATCH] Markdown: add " Brice Waegenire
@ 2013-09-23 22:01 ` Nicolas Goaziou
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2013-09-23 22:01 UTC (permalink / raw)
  To: Brice Waegenire; +Cc: emacs-orgmode

Hello,

Brice Waegenire <brice.wge@gmail.com> writes:

> * lisp/ox-md.el
>
> Add  the possibility to publish in Markdown by using the function
> org-md-publish-to-md.
>
> TINYCHANGE

Thank you for your patch.

Would you mind posting it again using git format-patch? Also the commit
message could be:

  ox-md: Add publishing function to back-end

  * lisp/ox-md.el: Add the possibility to publish in Markdown by using
    the function `org-md-publish-to-md'.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Markdown: Add publishing in markdown
  2013-09-22 18:32 [PATCH] Markdown: Add publishing in markdown Brice Waegenire
@ 2013-09-25  6:54 ` Carsten Dominik
  0 siblings, 0 replies; 4+ messages in thread
From: Carsten Dominik @ 2013-09-25  6:54 UTC (permalink / raw)
  To: Brice Waegenire; +Cc: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-09-25  6:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-22 18:32 [PATCH] Markdown: Add publishing in markdown Brice Waegenire
2013-09-25  6:54 ` Carsten Dominik
  -- 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

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).