fix: Multiline hyperlink is displayed as a single line hyperlink.#880
fix: Multiline hyperlink is displayed as a single line hyperlink.#880youssef-lr merged 3 commits intoExpensify:mainfrom
Conversation
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
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 |
|
Looking at this PR #585, I think this is expected. @thesahindia could you please check? |
|
@thesahindia @youssef-lr confirmed the expected behaviour here and updated the QA tests, we are good to merge this. |
|
@youssef-lr friendly bump for a final review and merge. |
|
@Krishna2323 can you merge main to fix this please |
|
I'm not sure why the workflow is not running, do you mind merging main again? |
|
Bump @Krishna2323 |



Explanation
We updated the link label matcher (the
[...]part) to disallow line breaks inside the brackets. Everything else (URL handling viaUrlPatterns.MARKDOWN_URL_REGEXand the negative look-ahead to avoid<pre>/<code>) remains unchanged.Fixed Issues
$ GH_LINK Expensify/App#65618
Tests
[link without line break](https://github.com/Expensify/expensify-common)and send.[link with line break](https://github.com/Expensify/expensify-common), add a line break in the [] bracket text and sendhttps://github.com/Expensify/expensify-commonis converted to link.QA