From d637e3a7cf40598319a7e6b039ee43e8a7725b48 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 26 Aug 2019 13:48:56 +0530 Subject: Parse org syntax in #+SUMMARY keyword. * ennu-html.el (ennu-html): Parse org syntax in :summary keyword. * ennu.el (ennu--post-metadata-memoized): Handle :summary property. --- ennu-html.el | 2 +- ennu.el | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ennu-html.el b/ennu-html.el index 6244a75..6f9ca05 100644 --- a/ennu-html.el +++ b/ennu-html.el @@ -11,7 +11,7 @@ :options-alist '((:html-inline-image-rules nil nil '(("image" . "\\.\\(jpeg\\|jpg\\|png\\|gif\\|svg\\)\\'")) t) - (:summary "SUMMARY" nil nil t) + (:summary "SUMMARY" nil nil parse) (:thumbnail "THUMBNAIL" nil nil t))) ;; TODO: Pass title through org-export-data-with-backend or something diff --git a/ennu.el b/ennu.el index 8aa2c85..412aa55 100644 --- a/ennu.el +++ b/ennu.el @@ -267,7 +267,7 @@ with two arguments -- the key and the value." (ennu-plist-map-to-plist (lambda (key value) (pcase key - ((or :author :title) + ((or :author :summary :title) (funcall export (first (plist-get metadata key)))) (:date (org-timestamp-to-time (first (plist-get metadata :date)))))) metadata)))) -- cgit v1.2.3