App: [$250] Code blocks of only spaces don't render

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.1-7 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. Go to any chat
  2. Send a text wrapped in two spaced backticks(Eg. Hello ). i.e Have a space between the backticks

Expected Result:

he backtick should be in the code block

Actual Result:

One Backtick is out of the code block

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/594496a1-8de3-460d-ada7-f2ad8051b361

Bug6285284_1700561421464!image

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01369e16f895581dbb
  • Upwork Job ID: 1726984904265334784
  • Last Price Increase: 2024-04-17
  • Automatic offers:
    • hoangzinh | Reviewer | 0

About this issue

  • Original URL
  • State: open
  • Created 7 months ago
  • Comments: 37 (28 by maintainers)

Most upvoted comments

@hoangzinh It looks like the root cause of this issue is located in ExpensiMark.

Let’s ask @robertKozik from our Live Markdown team at SWM if he wants to come up with a fix or rather make it external.

We are also doing a lot of ExpensiMark updates here: https://github.com/Expensify/App/issues/27977#issuecomment-1809820659. Perhaps we should hold Markdown issues on that larger project @parasharrajat / @tomekzaw / @thienlnam?

I think we should keep track of all these markdown changes to make sure the expected outcome is correct. Not sure how many of these there are though.

Though since this looks related to https://github.com/Expensify/App/issues/31493, let’s just hold this issue on that

Hi! I’m Bartosz from SWM react-native-live-markdown team, I’ll be handling this issue together with https://github.com/Expensify/App/issues/39518 you can assign me here 😄

@hoangzinh Let’s think about this problem https://github.com/Expensify/App/issues/31633#issuecomment-1821775273 before jumping on proposals.