Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email in LaTeX not working #51

Open
phieri opened this issue Nov 15, 2022 · 2 comments
Open

Email in LaTeX not working #51

phieri opened this issue Nov 15, 2022 · 2 comments

Comments

@phieri
Copy link

phieri commented Nov 15, 2022

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{hq@ssa.se

https://github.com/SverigesSandareamatorer/SSA-Akademin/blob/32bef56e654e4be9b2a3e573a337a97f70d79650/koncept/tryckort.tex#L58
Picks up hq@ssa.se}{hq@ssa.se

@mre
Copy link
Contributor

mre commented Nov 15, 2022

Maintainer of lychee here. Not sure if linkify is the right place to solve this.
I think texttt{hq@ssa.se 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.

@robinst
Copy link
Owner

robinst commented Nov 25, 2022

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

texttt{hq@ssa.se

hq@ssa.se}{hq@ssa.se

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants