I would like to use a custom link, i.e. [[h:blue][blue highlighted text]], to create highlighted text. The background color of the highlighted text is specified by the path. I have
(org-link-set-parameters
"h"
:export (lambda (path desc backend)
(cond
((eq 'html backend)
(format "<span style=\"background-color: %s\">%s</span>" path (or desc ""))
)))
;:face `(:foreground ,(lambda (path) (format "%s" path)))
:face '(:background "yellow")
)
The export works as expected, but I need to hard-code the background face to make any sort of highlighting. How can I fix this statement?
:face `(:foreground ,(lambda (path) (format "%s" path)))
so the path can specify the color in emacs?