mirror of
https://github.com/larstvei/ox-gfm.git
synced 2024-11-26 09:38:31 +00:00
Add support for publishing via ox-gfm
Stolen from ox-md
This commit is contained in:
parent
a46628aeb6
commit
8312a275c4
12
ox-gfm.el
12
ox-gfm.el
@ -28,8 +28,7 @@
|
|||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
(require 'ox-md)
|
(require 'ox-md)
|
||||||
|
(require 'ox-publish)
|
||||||
|
|
||||||
|
|
||||||
;;; User-Configurable Variables
|
;;; User-Configurable Variables
|
||||||
|
|
||||||
@ -355,6 +354,15 @@ Return output file's name."
|
|||||||
(let ((outfile (org-export-output-file-name ".md" subtreep)))
|
(let ((outfile (org-export-output-file-name ".md" subtreep)))
|
||||||
(org-export-to-file 'gfm outfile async subtreep visible-only)))
|
(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)
|
(provide 'ox-gfm)
|
||||||
|
|
||||||
;;; ox-gfm.el ends here
|
;;; ox-gfm.el ends here
|
||||||
|
Loading…
Reference in New Issue
Block a user