Renamed references

This commit is contained in:
2025-12-29 20:58:03 +00:00
parent 6e13e90e7d
commit 3739380ab8
4 changed files with 23 additions and 1 deletions

22
lisp/macros.el~ Executable file
View File

@@ -0,0 +1,22 @@
;; -----------------------------
;; Org export macros (batch-safe)
;; -----------------------------
(setq org-export-global-macros
'(
;; --- Tufte-style sidenotes ---
("sidenote"
. "@@html:<span class=\"sidenote\">$1</span>@@")
;; --- Single epigraph ---
("epigraph_single"
. "@@html:<blockquote class=\"epigraph\"><p>$1</p><footer>$2</footer></blockquote>@@")
;; --- Multi-line epigraph (optional) ---
("epigraph"
. "@@html:<blockquote class=\"epigraph\">$1</blockquote>@@")
;; --- New thought / drop cap ---
("newthought"
. "@@html:<span class=\"newthought\">$1</span>@@")
))

View File

@@ -1,6 +1,6 @@
(require 'ert)
(require 'ox-html)
(load-file "~/master-folder/org_files/org_roam/macros.el")
(load-file "~/master-folder/org_files/org_roam/lisp/macros.el")
(defun helper/org-export-html (org-content)
"Export ORG-CONTENT string to HTML and return the result."