From f49a747adfea970f73dc96c07240794c60cec696 Mon Sep 17 00:00:00 2001 From: Spencer Williams Date: Sat, 29 Mar 2025 19:09:35 -0400 Subject: Add option to export internal links with custom CSS class --- seam-html.el | 3 +++ 1 file changed, 3 insertions(+) (limited to 'seam-html.el') diff --git a/seam-html.el b/seam-html.el index b74be0b..018e56f 100644 --- a/seam-html.el +++ b/seam-html.el @@ -195,6 +195,9 @@ INFO is a plist holding contextual information. See link)))) (and (eq link (org-element-map parent 'link #'identity info t)) (org-export-read-attribute :attr_html parent))) + ;; Add Seam internal link class if appropriate. + (when (and seam-export--internal-link-class (string= "seam" link-type)) + (list :class seam-export--internal-link-class)) ;; Also add attributes from link itself. Currently, those ;; need to be added programmatically before `org-html-link' ;; is invoked, for example, by backends building upon HTML -- cgit v1.2.3