mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
Handle rendering messages using the old reference schema in khoj.el
Previously references were a list instead of a map
This commit is contained in:
parent
db056c896d
commit
c6b95f8776
1 changed files with 1 additions and 1 deletions
|
@ -921,7 +921,7 @@ RECEIVE-DATE is the message receive date."
|
||||||
(defun khoj--generate-reference (reference)
|
(defun khoj--generate-reference (reference)
|
||||||
"Create `org-mode' footnotes with REFERENCE."
|
"Create `org-mode' footnotes with REFERENCE."
|
||||||
(setq khoj--reference-count (1+ khoj--reference-count))
|
(setq khoj--reference-count (1+ khoj--reference-count))
|
||||||
(let ((compiled-reference (cdr (assoc 'compiled reference))))
|
(let ((compiled-reference (if (stringp reference) reference (cdr (assoc 'compiled reference)))))
|
||||||
(cons
|
(cons
|
||||||
(propertize (format "^{ [fn:%x]}" khoj--reference-count) 'help-echo compiled-reference)
|
(propertize (format "^{ [fn:%x]}" khoj--reference-count) 'help-echo compiled-reference)
|
||||||
(thread-last
|
(thread-last
|
||||||
|
|
Loading…
Reference in a new issue