-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$250] Code blocks of only spaces don't render #31633
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01369e16f895581dbb |
Triggered auto assignment to @twisterdotcom ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.One backtick is outside the code block when we send What is the root cause of that problem?Here is the regex for the inline code block
As you can see, we add negative lookahead assertion This is the root cause What changes do you think we should make in order to solve the problem?We need to consider the cases where spaces exist before the backtick
This works as expected Result31633.mp4What alternative solutions did you explore? (Optional)In cases we want to parse spaces as a valid code like github, we can update the above regex to
31633_alternative.mp4 |
Surely this is a regression from somewhere right? cc @parasharrajat or @allroundexperts might know. I feel like we test markdown endlessly. |
@s-alves10 are you able to find any regression PR recently causing this bug? or it's a new case that we haven't handled before? |
Inline code regex was changed 3 months ago but that change didn't cause this issue. |
@twisterdotcom I don't see any recent PR that caused this. but I agree with you that we test MD endlessly. In the past, I raised the same concern and suggested that we should create a ruleset for all MD syntax. I guess we are still on that step. We should create one to make sure we are not redoing it. Let me know your thoughts. |
@s-alves10 I tried to apply your proposal but it causes a unit test in expensify-common repo failure. Could you check again? Thanks |
Comparing the above two cases, the first case needs to extend the inline code block content as possible including the space character, and the second case needs to extend the content as possible not including the space. We need to set clear expectation here Note: I've found that there are some differences in inline code block parsing between GitHub and Expensify. I'd like to know what the Expensify rule is based on |
@twisterdotcom, @hoangzinh Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Agreed. @twisterdotcom @lanitochka17, the expectation is not clearly enough. Could we describe it more clearly? Thanks. Given user type
What is our expectation in compose box?
|
@s-alves10 I don't know too. You can ask in Slack to get the answer. |
@hoangzinh Let's think about this problem #31633 (comment) before jumping on proposals. |
Oh, I thought we already have unit tests for MD to ensure it won't happen again.
@rushatgabhane I wasn't involved before. Could you share more about this point? Thanks |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
FWIW, I think it should render like GitHub: We are also doing a lot of ExpensiMark updates here: #27977 (comment). Perhaps we should hold Markdown issues on that larger project @parasharrajat / @tomekzaw / @thienlnam? |
I believe this issue is related to #31493 but all the other issues in #27977 (comment) seem to be independent. |
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 #31493, let's just hold this issue on that |
Still waiting on markdown hitting web. |
Waiting on #36071 (comment) |
Still going to wait on live markdown being everywhere. |
Upwork job price has been updated to $250 |
Hi @twisterdotcom is this issue still external or would be picked by @tomekzaw? |
@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. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@robertKozik can we assign you or somebody from the Live Markdown team here? |
Sorry, looking into it right now 👀 |
Hi! I'm Bartosz from SWM |
📣 @hoangzinh 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
@thienlnam this issue was due to expensify-common version inconsistency between live markdown & expensify. Can we get it closed since it's now working the same way both in composer & chat? |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] 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:
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?
Screenshots/Videos
Add any screenshot/video evidence
Bug6285284_1700561421497.test3_Backtick.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: