App: [$500] Chat - Multiline code block (three back ticks) using makes the hyperlink broken

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 1.4.26-1 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:

Action Performed:

  1. Open Expensify App
  2. Log in
  3. Open any chat
  4. In compose box enter any link for example google.com and send
  5. Tap and hold on the sent link in the step 4
  6. Select Edit comment
  7. Enter three back ticks inside the square brackets for example [google.com]
  8. Send the link

Expected Result:

The hyperlink should not be broken even if multiline code block (three back ticks) is used

Actual Result:

The hyperlink is broken if multline code block is used

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/1e0dc5a3-5d70-4594-8529-ec74ac9a0887

Bug6345774_1705524199886!IMG_20240117_234237

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~011a4dae0f313f46d1
  • Upwork Job ID: 1747734779200806912
  • Last Price Increase: 2024-01-17

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Comments: 17 (6 by maintainers)

Most upvoted comments

For future reference, it’s not only not worth fixing, but not a bug at all. Works as expected. ExpensiMark is inspired by MarkDown and is nearly compatible with it. MarkDown is currently specified in the CommonMark specification. CommonMark classifies multi-backtick code blocks as blocks, while links are inlines. You can never wrap a block with an inline in CommonMark; it’s impossible by definition.