-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[PAID] [$250] Mark down - Live mark down preview disappears after entering empty single backtick code block #53457
Comments
Triggered auto assignment to @strepanier03 ( |
@strepanier03 Huh... This is 4 days overdue. Who can take care of this? |
@strepanier03 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@strepanier03 this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@strepanier03 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
Back from ooo being sick. I'm testing again. |
I am unable to reproduce still. |
This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989 |
Auto post in contributor plus here |
@strepanier03 2024-12-18.20.28.21.mov@Skalakid |
Issue not reproducible during KI retests. (First week) |
@ZhenjaHorbach - Thank for sharing and thanks for testing @mvtglobally - I'll continue to follow along. |
Good catch @ZhenjaHorbach! The error that I was trying to fix still occurs and appears when there are only spaces between backticks in the inline code markdown. It's caused by this line in the ExpensiMark parser which escapes spaces inside the inline codeblock and changes them into {
name: 'inlineCodeBlock',
// Use the URL escaped version of a backtick (`) symbol. Mobile platforms do not support lookbehinds,
// so capture the first and third group and place them in the replacement.
// but we should not replace backtick symbols if they include <pre> tags between them.
// At least one non-whitespace character or a specific whitespace character (" " and "\u00A0")
// must be present inside the backticks.
regex: /(\B|_|)`(.*?)`(\B|_|)(?!(?!<pre>)[^<]*(?:<(?!pre>)[^<]*)*<\/pre>|[^<]*<\/video>)/gm,
replacement: (_extras, _match, g1, g2, g3) => {
const g2Value = g2.trim() === '' ? g2.replaceAll(' ', ' ') : g2; // <- this line
if (!g2Value) {
return _match;
}
return `${g1}<code>${g2Value}</code>${g3}`;
},
}, How about removing this logic and blocking rendering inline code block when there are only whitespaces between backticks? In Expensify users can't send something like this as a message:
After sending the message the space will be trimmed and the sent message will look like this:
So, it seems like it's an unnecessary case. Removing it will help us and prevent sending |
Thanks for your proposal! |
@Skalakid But on the other hand in github which use markdown |
Current assignee @ZhenjaHorbach is eligible for the External assigner, not assigning anyone new. |
Issue not reproducible during KI retests. (First week) |
The PR has been merged, the issue should be fixed now |
We're just waiting on deployment now |
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.88-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2025-01-30. 🎊 For reference, here are some details about the assignees on this issue:
|
@ZhenjaHorbach @strepanier03 @ZhenjaHorbach The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
@ZhenjaHorbach - In anticipation of the payment hold ending tomorrow I created and hired you to an Upwork job. I'll check for the checklist tomorrow, and if it's posted, I'll take the next steps. Chat with you then 👋 |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Unfortunately, I did not find a suitable PR
NA
Test:
Do we agree 👍 or 👎 |
@strepanier03 |
no worries at all @ZhenjaHorbach - this is right on time. I'll take next steps. |
Payment Summary
|
REg test created and job paid and closed, closing this GH now. Thanks everyone! |
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: 9.0.70-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
The text with mark down in Step 3 will still display live mark down preview after entering empty single backtick code block.
Actual Result:
The text with mark down in Step 3 no longer displays live mark down preview after entering empty single backtick code block.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6682769_1733215534106.20241203_164413.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @strepanier03The text was updated successfully, but these errors were encountered: