question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Strikethrough text is not working as expected if there's a space before the ~

See original GitHub issue

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


Expected Result:

Text shouldn’t be strikethrough

Actual Result:

Text is strikethrough

Action Performed:

  1. Navigate to a conversation
  2. Send this text ~this text shouldn't be crossed if there's a space behind ~ test

Workaround:

No need, visual issue.

Platform:

Where is this issue occurring?

Web ✔️ iOS Android Desktop App Mobile Web

Version Number: 1.0.43-0

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

image

Expensify/Expensify Issue URL:

View all open jobs on Upwork


From @mallenexpensify https://expensify.slack.com/archives/C01GTK53T8Q/p1620845857125700

When using multiple ~ in chat, markdown treats them as strikethrough. When there is a space before the second ~ we shouldn’t use that to denote the markdown.

Upwork job post: https://www.upwork.com/jobs/~0185450afd7993674c

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:39 (33 by maintainers)

github_iconTop GitHub Comments

2reactions
rafecoltoncommented, Jun 24, 2021

I think we should match whatever GitHub does. Looks like both of those examples you have @rdjuric are not struck through on GitHub

1reaction
puneetlathcommented, Aug 9, 2021

Ok, let’s open a new issue if we decide we need to make a change. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

white space in bold and italic causes problems #907 - GitHub
The cases with code and strikethrough are different because they are expected to show the content inside "as is" so it is expected...
Read more >
I want my text strike through extend on whitespace
The strike through is ignore the whitespace unless I add some non-empty text before and after it.
Read more >
Strikethrough not working when typing comments on YouTube?
On a comment I was trying to italicize I found it would not work if there was a "." directly at the end....
Read more >
Suppressing text with strikethrough? - LaTeX Stack Exchange
One solution would be to use \unskip like suggested by @StevenB. Segletes. But instead I'd prefer to use \@bsphack\@esphack , as \unskip would ......
Read more >
Delete strikethrough from space at the end of a line?
If the text reflows, you may find those spaces in the middle of paragraphs (with no strike through). So you may have to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found