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

add hyperlink support in announcements #288

Open
lizchu413 opened this issue Feb 25, 2025 · 3 comments
Open

add hyperlink support in announcements #288

lizchu413 opened this issue Feb 25, 2025 · 3 comments

Comments

@lizchu413
Copy link

currently links in announcements aren't clickable, which is sad when i want to highlight ed posts ;-; or the TA feedback survey ;-; being able to click links on the announcements would be so slay <3

@pranavaddepalli
Copy link
Collaborator

smh
you can do this yourself @lizchu413

go to home service and look for the post create / post update announcements functions

use replaceAll to find all urls in the announcement content and then swap with an a href in front of it

the regex is /[-a-zA-Z0-9@:%.+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%+.~#?&//=]*)/gi;

@pranavaddepalli
Copy link
Collaborator

Image

@lizchu413
Copy link
Author

Image

im ok thanks tho

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

No branches or pull requests

2 participants