Hi
The following drives me a bit crazy.
I have two functions, one for email.
(defun my-color-red-html ()
(interactive)
(while (re-search-forward "#\\([^#]*\\)#" nil t)
(replace-match "<span style=\"color:red\">\\1</span>")))
I put this function into two hooks
(add-hook 'org-mime-html-hook 'my-color-red-html)
(defun my-html-red (text backend info)
(when (org-export-derived-backend-p backend 'html)
(replace-regexp-in-string "#\\([^#]*\\)#"
"<span style=\"color:red\">\\1</span>"
text)))
(add-to-list 'org-export-filter-plain-text-functions 'my-html-red)
Now if I have
#<2023-02-11>#
in an email it gets replaced by
<span style="color:red"><span class="timestamp-wrapper"><span
class="timestamp"> 11.02.2023 </span></span></span>
But if I have
#<2023-02-11>#
in an org file and export it to html, no color is added to the timestamp.
I don't know how to debug this.
Any idea?
Regards
Uwe Brauer
--
Warning: Content may be disturbing to some audiences
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military.
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/