-
Notifications
You must be signed in to change notification settings - Fork 136
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
Update strikethrough replace rule to fix multiple tilde error #569
Update strikethrough replace rule to fix multiple tilde error #569
Conversation
Fix the PR title. It should explain your changes. Please use better commit messages which explain the code. |
@parasharrajat I updated the PR title, commit message and description. |
a164b47
to
7227665
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
cc: @neil-marcellini
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should also test html to text and html to markdown to make sure that all works too.
I don't really understand the full regex, so let's be sure to also test the steps from the PR where this was last changed.
Yes for #461, we added a unit test. |
I think previous test cases include test for this already. |
@parasharrajat @neil-marcellini I pushed new commit for required changes above. |
@tylerkaraszewski @parasharrajat @neil-marcellini Can we merge this PR if it is approved? |
Not while it says "hold merge freeze" in the title. We are still waiting on the end of that freeze. |
@tylerkaraszewski @parasharrajat @neil-marcellini Merge freeze is over now. Could you please merge this PR soon? |
Update strikethrough replace rule to fix multiple tilde error when transition from text to html.
To make sure that
<del>
tag contains content text, if it's wrapped by multiple tilde characters.Currently,
<del>
tag contains 2 tilde characters too after transition.Fixed Issues
Expensify/App#25693
Tests
In ExpensiMark-HTML-test.js file, test named "Test strikethrough with multiple tilde characters" works correctly.
Checked if the updated strikethrough rule only wraps content text inside multiple tilde characters.
QA
Run the new test cases.
N/A