-
Notifications
You must be signed in to change notification settings - Fork 142
fix: Multiline hyperlink is displayed as a single line hyperlink. #880
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: krishna2323 <[email protected]>
Signed-off-by: krishna2323 <[email protected]>
Testing! |
Reviewer Checklist
Screenshots/VideosiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2025-09-08.at.11.21.51.PM.mov |
@Krishna2323, please add QA steps. |
I will provide updates tomorrow, I need some time to do proper testing as I recently found a issue when updating the single line link to multiple line link. |
Any update @Krishna2323? |
If we add a line break to existing link, the remaining part (direct link) will not be converted to link: Monosnap.screencast.2025-09-15.21-12-14.mp4 |
Is there still work to do here? |
@youssef-lr yes, could you please check this comment? |
Did you find a fix for it? |
I'm trying to understand the code below. This part is responsible for not returning the new link. For the past two days, I haven’t had time to work on this because one of my PR caused regressions, and I was busy resolving them. I’ll try to provide an update later today. expensify-common/lib/ExpensiMark.ts Lines 1338 to 1365 in ef17304
|
Explanation
We updated the link label matcher (the
[...]
part) to disallow line breaks inside the brackets. Everything else (URL handling viaUrlPatterns.MARKDOWN_URL_REGEX
and the negative look-ahead to avoid<pre>/<code>
) remains unchanged.Fixed Issues
$ GH_LINK Expensify/App#65618
Tests
QA