[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: org-->html text between @ should be red.
From: |
Juan Manuel Macías |
Subject: |
Re: org-->html text between @ should be red. |
Date: |
Sat, 15 Jan 2022 19:59:45 +0000 |
Uwe Brauer writes:
> Thanks very much it works as expected. However I just realized (and
> this is true also for the org-mime filter that the reg-exp has a flaw.
>
> I used the text
>
>
> =email:oub@mat.ucm.es=
>
> So there is only one @, nevertheless the exporter translated that to
> <code>email:oub<span style="color:red">mat.ucm.es</code><br />
>
> But this is wrong in my view.
>
> Any ideas how to deal with such a situation?
You can bind the function to org-export-filter-plain-text-functions
instead of ...-final-output-functions.
That way you wouldn't get false positives on lines like:
=email:oub@mat.ucm.es= some text @some text@
<code>email:oub@mat.ucm.es</code> some text <span style="color:red">some
text</span>
Best regards,
Juan Manuel
Re: org-->html text between @ should be red., Timothy, 2022/01/15