We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc7e966 commit a6f6759Copy full SHA for a6f6759
ox-typst.el
@@ -574,6 +574,7 @@ will result in `ox-typst' to apply the colors to the code block."
574
(email (when (plist-get info :with-email)
575
(plist-get info :email)))
576
(toc (plist-get info :with-toc))
577
+ (date (plist-get info :date))
578
(typst-header (plist-get info :typst-header)))
579
(concat
580
(format "#let _ = ```typ
@@ -583,6 +584,7 @@ exec %s
583
584
585
"#set document("
586
(format "title: \"%s\"" (or (car title) ""))
587
+ (when date (format ", date: %s" (string-trim-right (string-trim-left (org-typst-timestamp (car date) contents info) "#") ".display()")))
588
(when author
589
(or (when email
590
(format ", author: \"<%s> %s\"" (car author) email))
0 commit comments