[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-modern acaaa30f31 6/6: Improve org-modern-footnote
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-modern acaaa30f31 6/6: Improve org-modern-footnote handling |
Date: |
Sun, 5 Jun 2022 07:57:44 -0400 (EDT) |
branch: externals/org-modern
commit acaaa30f31fe2f1d1b2c77795672291ff0d9d0a2
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Improve org-modern-footnote handling
---
org-modern.el | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/org-modern.el b/org-modern.el
index 620374b73a..d7c7fc9b43 100644
--- a/org-modern.el
+++ b/org-modern.el
@@ -574,11 +574,15 @@ You can specify a font `:family'. The font families
`Iosevka', `Hack' and
(0 (org-modern--tag)))))
(when org-modern-footnote
`(("^\\(\\[fn:\\)[[:word:]-_]+\\]" ;; Definition
- (0 '(face nil display ,(car org-modern-footnote)))
- (1 '(face nil display ,(propertize "[" 'display (car
org-modern-footnote)))))
+ ,@(if-let (x (car org-modern-footnote))
+ `((0 '(face nil display ,x))
+ (1 '(face nil display ,(propertize "[" 'display x))))
+ '((1 '(face nil display "[")))))
("[^\n]\\(\\(\\[fn:\\)[[:word:]-_]+\\]\\)" ;; Reference
- (1 '(face nil display ,(cdr org-modern-footnote)))
- (2 '(face nil display ,(propertize "[" 'display (cdr
org-modern-footnote)))))))
+ ,@(if-let (x (cdr org-modern-footnote))
+ `((1 '(face nil display ,x))
+ (2 '(face nil display ,(propertize "[" 'display x))))
+ '((2 '(face nil display "[")))))))
(when org-modern-internal-target
`(("\\(<<\\)\\([^<][^\n]*?\\)\\(>>\\)"
(0 '(face org-modern-internal-target) t)
- [elpa] externals/org-modern updated (d6e1c77a9f -> acaaa30f31), ELPA Syncer, 2022/06/05
- [elpa] externals/org-modern 0814985d83 3/6: Add comment (See #60), ELPA Syncer, 2022/06/05
- [elpa] externals/org-modern 83a4b3bd34 2/6: Support different styling for footnote references and definitions (Fix #61), ELPA Syncer, 2022/06/05
- [elpa] externals/org-modern a1de2ead31 4/6: Horizontal rules can be indented (#61), ELPA Syncer, 2022/06/05
- [elpa] externals/org-modern acaaa30f31 6/6: Improve org-modern-footnote handling,
ELPA Syncer <=
- [elpa] externals/org-modern ad07891dca 1/6: Revert "Horizontal rules can be indented (#61)", ELPA Syncer, 2022/06/05
- [elpa] externals/org-modern 8ef4d49a58 5/6: Fix typos, ELPA Syncer, 2022/06/05