-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Chat - Markdown entered in email responses don’t render in the app correctly #4899
Comments
Triggered auto assignment to @flodnv ( |
Triggered auto assignment to @trjExpensify ( |
Nice shot @MelvinBot 😄 @trjExpensify I don't think we really want to fix this? Or if we do, I'd say low priority at best? |
We can mark this issue as |
Triggered auto assignment to @roryabraham ( |
I think this may actually end up being an internal issue since the way we handle email responses is through mailgun and this might be a case of us not parsing or converting the markdown into html |
Cool, if that transpires to be the case I can pull the job post down. |
No takers on Upwork yet, Melv. |
@trjExpensify Please take down the Upwork job for this issue, then feel free to unassign yourself. |
Started working on this today. i was playing around with Eg of markdown bold: If you bold a text in gmail we'll receive its formatted style. Our app currently does not recognize So anyway I think we should not be looking at converting markdown from the emails and instead just allowing formatted email styles to show. Since the latter is more common and I'm not sure why would anyone send an email with markdown text. Let me know if that makes sense or if you guys feel differently. |
My bad, my comment about parsing emails into markdown was not accurate
We already do this mostly, we get HTML from emails but have to strip them of quoted content and images (since we process those separately and not inline) here. Quoted content being stripped is expected for previous email replies but we may need to update our parser to only strip out previous email content instead of all quoted content
This is probably something we can add into expensimark |
I was chatting with @chiragsalian about this 1:1 but I don't think we should support markdown entered in emails like the issue description mentioned. Instead, they should just use the included formatting that email providers allow. I think this Problem/Solution to this would be: Problem: Formatting used in emails is not being formatted correctly in the app |
Got a bit sidetracked due to other priorities and then I've been OOO this week cause I'm helping with the career fair. I should get back to this issue soon. |
Demoting to monthly since i'm focusing on other tasks while this still has n6-hold on it. |
Was focusing on other priorities. Now that my plate is clear i should get back to this soon. |
Fixed, I'm adding support for bold, italics, and strikethrough from emails. The changes were easier than I thought, I just had to update our react-native-render-html since support for bold was added recently. Italics always worked. Strikethrough was stripped in the backend so I'm allowing it now and react-native-render-html works perfectly with strike tags as well. If there are additional styles needed we can add them in on a case-to-case basis. PR in review. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
The markdown entered in the email response should render in the New Expensify app
Actual Result:
The message via email appears in New Expensify without markdown rendered correctly
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number:
![Bug5212462_markdown](https://user-images.githubusercontent.com/43996225/131225796-26b223ab-97bc-4b7c-a7f5-564285029441.jpg)
1.0.88-2
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: