From 27c774237c60c2d203b4168db55fb722541dca75 Mon Sep 17 00:00:00 2001 From: Alex Koval Date: Mon, 7 Nov 2022 10:01:58 +0200 Subject: [PATCH] Fix `timestamp` export --- ox-gfm.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ox-gfm.el b/ox-gfm.el index 9939c95..5c1e405 100644 --- a/ox-gfm.el +++ b/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