diff options
author | Arun Isaac | 2019-08-26 13:48:56 +0530 |
---|---|---|
committer | Arun Isaac | 2019-08-26 13:48:56 +0530 |
commit | d637e3a7cf40598319a7e6b039ee43e8a7725b48 (patch) | |
tree | b889f6fc139319ec13561635bb61c77a3a2b4d11 | |
parent | 7d03d10334a1589a6a9d96affdb49da310f584e2 (diff) | |
download | ennum-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.el | 2 | ||||
-rw-r--r-- | 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 @@ -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)))) |