arXiv / arxiv-search

arXiv Search UI & APIs
https://arxiv.github.io/arxiv-search/
MIT License
96 stars 15 forks source link

Parse links in comments (and abstract?) field; external links #121

Open mhl10 opened 6 years ago

mhl10 commented 6 years ago

Submitters often include URIs in their comments. It would be great to parse them and present them as external links.

I stumbled upon this issue from our friends at Inspire, which discusses a jinja2 helper for external links: https://github.com/inspirehep/inspire-next/issues/585

It might be nice to do something similar (i.e. consistent about how we link to external resources).

erickpeirson commented 6 years ago

I'm a pretty big fan of bleach for things like this; see http://bleach.readthedocs.io/en/latest/linkify.html

mhl10 commented 6 years ago

Looks like this will do exactly what we need!