Re: export to html, colored dates: org-mime export works but org to html does not

2023-02-11 Thread Uwe Brauer
> [ Adding Org ML back to CC ] > Uwe Brauer writes: > See "13.9.12 CSS support" section of Org manual. Thanks! #+OPTIONS: html-style:nil Works, maybe is too blunt, but good enough for me -- Warning: Content may be disturbing to some audiences I strongly condemn Putin's war of aggression

Re: export to html, colored dates: org-mime export works but org to html does not

2023-02-11 Thread Ihor Radchenko
[ Adding Org ML back to CC ] Uwe Brauer writes: >>> | Will this work? >>> | {{{IDATE(<2023-02-11>)}}} >>> ` >>> >>> Does not work for me >> >> It does work. It's just that default css style for timestamps sets the >> color of its own. > > Well but then what should I do on a practical

Re: export to html, colored dates: org-mime export works but org to html does not

2023-02-11 Thread Ihor Radchenko
Uwe Brauer writes: > | #+MACRO: IDATE @@html:@@$1@@html:@@ > | > | * Title <{{{IDATE(2023-02-11)}}}> o {{{IDATE(<2023-02-11>)}}} > | > | Will this work? > | {{{IDATE(<2023-02-11>)}}} > ` > > Does not work for me It does work. It's just that default css style for timestamps sets the

Re: export to html, colored dates: org-mime export works but org to html does not

2023-02-11 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko writes: > Uwe Brauer writes: >> <2023-02-11> >> >> But I would like to having the same result org-mime obtains >> >> Namely >> >> 11.02.2023 >> >> Any chance to get that also? > #+MACRO: IDATE @@html:@@$1@@html:@@ Thanks but

Re: export to html, colored dates: org-mime export works but org to html does not

2023-02-11 Thread Ihor Radchenko
Uwe Brauer writes: > <2023-02-11> > > But I would like to having the same result org-mime obtains > > Namely > > class="timestamp"> 11.02.2023 > > Any chance to get that also? #+MACRO: IDATE @@html:@@$1@@html:@@ -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode

Re: export to html, colored dates: org-mime export works but org to html does not

2023-02-11 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko writes: > Uwe Brauer writes: >>> #+MACRO: IDATE @@html:$1@@ >> >>> {{{IDATE(<2023-02-11>)}}} >> ... >> * Title {{{<2023-02-11>}}} >> {{{(<2023-02-11>)}}} >> >> >> Does not work when exporting to html, and I have recent developer org >> version installed > You

Re: export to html, colored dates: org-mime export works but org to html does not

2023-02-11 Thread Bruno Barbier
Uwe Brauer writes: "BB" == Bruno Barbier writes: > >> Uwe Brauer writes: >> .. > >>> (add-to-list 'org-export-filter-plain-text-functions 'my-html-red) >> .. > >>> But if I have >>> #<2023-02-11># >>> in an org file and export it to html, no color is added to the timestamp. >>> >>> I

Re: export to html, colored dates: org-mime export works but org to html does not

2023-02-11 Thread Ihor Radchenko
Uwe Brauer writes: >> #+MACRO: IDATE @@html:$1@@ > >> {{{IDATE(<2023-02-11>)}}} > ... > * Title {{{<2023-02-11>}}} > {{{(<2023-02-11>)}}} > > > Does not work when exporting to html, and I have recent developer org > version installed You forgot to specify IDATE macro name. -- Ihor Radchenko

Re: export to html, colored dates: org-mime export works but org to html does not

2023-02-11 Thread Uwe Brauer
>>> "BB" == Bruno Barbier writes: > Uwe Brauer writes: > .. >> (add-to-list 'org-export-filter-plain-text-functions 'my-html-red) > .. >> 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. >> >>

Re: export to html, colored dates: org-mime export works but org to html does not

2023-02-11 Thread Bruno Barbier
Uwe Brauer writes: .. > (add-to-list 'org-export-filter-plain-text-functions 'my-html-red) .. > 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? In org, "<2023-02-11>" is a date,

export to html, colored dates: org-mime export works but org to html does not

2023-02-11 Thread Uwe Brauer
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 "\\1"))) I put this function into two hooks (add-hook 'org-mime-html-hook 'my-color-red-html)