Fix timestamp export

This commit is contained in:
Alex Koval 2022-11-07 10:01:58 +02:00
parent 46faa67dbb
commit 27c774237c

View File

@ -60,6 +60,7 @@
(src-block . org-gfm-src-block) (src-block . org-gfm-src-block)
(table-cell . org-gfm-table-cell) (table-cell . org-gfm-table-cell)
(table-row . org-gfm-table-row) (table-row . org-gfm-table-row)
(timestamp . org-gfm-timestamp)
(table . org-gfm-table))) (table . org-gfm-table)))
@ -231,6 +232,16 @@ contextual information."
(concat (when no-header (funcall build-dummy-header)) (concat (when no-header (funcall build-dummy-header))
(replace-regexp-in-string "\n\n" "\n" contents)))) (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 ;;;; Table of contents