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:o...@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:o...@mat.ucm.es= some text @some text@ <code>email:o...@mat.ucm.es</code> some text <span style="color:red">some text</span> Best regards, Juan Manuel