summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2019-08-26 13:48:56 +0530
committerArun Isaac2019-08-26 13:48:56 +0530
commitd637e3a7cf40598319a7e6b039ee43e8a7725b48 (patch)
treeb889f6fc139319ec13561635bb61c77a3a2b4d11
parent7d03d10334a1589a6a9d96affdb49da310f584e2 (diff)
downloadennum-d637e3a7cf40598319a7e6b039ee43e8a7725b48.tar.gz
ennum-d637e3a7cf40598319a7e6b039ee43e8a7725b48.tar.lz
ennum-d637e3a7cf40598319a7e6b039ee43e8a7725b48.zip
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.
-rw-r--r--ennu-html.el2
-rw-r--r--ennu.el2
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))))