Is there any way to replace some text before or after exporting it with
I have a TBX file with lots of notes that I want to use for a book (LaTeX→PDF) and a website. To keep the content and styling consistent, I keep the notes free from code and use only basic text formatting in the text editor. For the LaTeX export I use a LaTeX prototype with the appropriate markup in the Export Inspector. For the advanced formatting I wrote a LaTeX Template that works very well for me.
Now I have some web links inside my notes that export to:
(<a href="https://abc.de">my link</a>)
which confuses LaTeX. I’d like to change them to LaTeX hyperref syntax:
Of course, I can replace the link code using RegEx in my LaTeX template by replacing
but then I lose the markup provided by
Any idea how to solve this?