-
Notifications
You must be signed in to change notification settings - Fork 44
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
Circulars: Convert emails to hyperlinks #2456
Comments
It already works for Markdown-formatted Circulars because this is done by the autolink literals plugin. |
does this include the submitter email in the header? |
No, but you could easily process that using remark/rehype. |
@lpsinger that's what I was thinking, should this issue be migrated to remark-rehype-astro? |
No. As I said, this code is in https://github.com/nasa-gcn/gcn.nasa.gov/blob/main/app/routes/circulars.%24circularId.(%24version)/rehypeAutolinkLiteral.ts. |
Description
We currently have functionality that automatically inserts hyperlinks for URLs, DOIs, TNSs, and GCN Circulars when they're referenced in Circulars. It may be beneficial to automatically hyperlink email addresses, both in the body of Circulars and in the submitter information.
The submitter email will be a more straightforward regular expression, as it can simply be a regular expression that matches any string enclosed by
<>
, but the regular expression to link to emails in a Circular may be less straightforward.Acceptance criteria
[email protected]
and convert them to a hyperlink in the formatmailto:[email protected]
@
symbol are not matched by the regular expressionThe text was updated successfully, but these errors were encountered: