mirror of
https://github.com/larstvei/ox-gfm.git
synced 2024-11-26 09:38:31 +00:00
Fix timestamp
export
This commit is contained in:
parent
46faa67dbb
commit
27c774237c
11
ox-gfm.el
11
ox-gfm.el
@ -60,6 +60,7 @@
|
||||
(src-block . org-gfm-src-block)
|
||||
(table-cell . org-gfm-table-cell)
|
||||
(table-row . org-gfm-table-row)
|
||||
(timestamp . org-gfm-timestamp)
|
||||
(table . org-gfm-table)))
|
||||
|
||||
|
||||
@ -231,6 +232,16 @@ contextual information."
|
||||
(concat (when no-header (funcall build-dummy-header))
|
||||
(replace-regexp-in-string "\n\n" "\n" contents))))
|
||||
|
||||
;;;; Timestamp
|
||||
|
||||
(defun org-gfm-timestamp (timestamp contents info)
|
||||
"Transcode PARAGRAPH element into Github Flavoured Markdown format.
|
||||
CONTENTS is the paragraph contents. INFO is a plist used as a
|
||||
communication channel."
|
||||
(let ((value (org-html-plain-text (org-timestamp-translate timestamp) info)))
|
||||
(format "%s" value))
|
||||
)
|
||||
|
||||
|
||||
;;;; Table of contents
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user