mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Remove filename from reference before rendering references in khoj.el
Fixes bug where actual reference heading in next line jumping out of references footnote section
This commit is contained in:
parent
ec280067ef
commit
7af8a56434
1 changed files with 4 additions and 0 deletions
|
@ -825,6 +825,10 @@ RECEIVE-DATE is the message receive date."
|
|||
(propertize (format "^{ [fn:%x]}" khoj--reference-count) 'help-echo reference)
|
||||
(thread-last
|
||||
reference
|
||||
;; remove filename top heading line from reference
|
||||
;; prevents actual reference heading in next line jumping out of references footnote section
|
||||
(replace-regexp-in-string "^\* .*\n" "")
|
||||
;; remove multiple, consecutive empty lines from reference
|
||||
(replace-regexp-in-string "\n\n" "\n")
|
||||
(format "\n[fn:%x] %s" khoj--reference-count))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue