From 8312a275c4bcc9d4fa999af0361012bdd73f7cb7 Mon Sep 17 00:00:00 2001 From: Jay Kamat Date: Mon, 5 Sep 2016 13:39:43 -0400 Subject: [PATCH] Add support for publishing via ox-gfm Stolen from ox-md --- ox-gfm.el | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ox-gfm.el b/ox-gfm.el index 530d631..8017d78 100644 --- a/ox-gfm.el +++ b/ox-gfm.el @@ -28,8 +28,7 @@ ;;; Code: (require 'ox-md) - - +(require 'ox-publish) ;;; User-Configurable Variables @@ -355,6 +354,15 @@ Return output file's name." (let ((outfile (org-export-output-file-name ".md" subtreep))) (org-export-to-file 'gfm outfile async subtreep visible-only))) +;;;###autoload +(defun org-gfm-publish-to-gfm (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 'gfm filename ".md" plist pub-dir)) + (provide 'ox-gfm) ;;; ox-gfm.el ends here