linkify icon indicating copy to clipboard operation
linkify copied to clipboard

Email in LaTeX not working

Open phieri opened this issue 2 years ago • 2 comments

When using lychee on a LaTeX book repository the following email addresses were not picked up correctly with the curly brackets.

https://github.com/SverigesSandareamatorer/SSA-Akademin/blob/32bef56e654e4be9b2a3e573a337a97f70d79650/koncept/foreword.tex#L156 Picks up texttt{[email protected]

https://github.com/SverigesSandareamatorer/SSA-Akademin/blob/32bef56e654e4be9b2a3e573a337a97f70d79650/koncept/tryckort.tex#L58 Picks up [email protected]}{[email protected]

phieri avatar Nov 15 '22 11:11 phieri

Maintainer of lychee here. Not sure if linkify is the right place to solve this. I think texttt{[email protected] is technically a syntactically valid email address. The curly brace is not very common, but it's an accepted special character. Properly parsing LaTeX would avoid that problem, but I'm not aware of a good crate for that.

mre avatar Nov 15 '22 11:11 mre

Yeah what @mre said. What's interesting though is that GitHub doesn't allow { and handles these cases as you'd expect:

texttt{[email protected]

[email protected]}{[email protected]

robinst avatar Nov 25 '22 05:11 robinst