-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
HIGH: [Polish] Add support for inline image Markdown #37246
Comments
@kidroca FYI |
I'm not able to self-assign myself to this issue, but this comment should allow anyone with access to assign me In the meantime I'll review how we're currently handling MD parsing and how that integrates with the HTML renderer used in report action comments and then propose how we might update it to handle MD image syntax for publicly hosted images |
ProposalPlease re-state the problem that we are trying to solve in this issue.The problem is that NewDot currently lacks the functionality for users to send inline images, although it can display images sent from Concierge. What is the root cause of that problem?The root cause is that ExpensiMark does not support Markdown image syntax, which is essential for embedding images in user-generated content. What changes do you think we should make in order to solve the problem?To address the problem, we need to enhance the ExpensiMark library, which is responsible for processing comments in NewDot by converting them into HTML before they are sent to the backend. Specifically, the following updates are recommended for ExpensiMark to improve image handling:
What alternative solutions did you explore? (Optional)N/A |
Status UpdateI've initiated a pull request to introduce the feature of embedding public images using Markdown syntax, available at: PR #37566. Upon enabling this functionality, we've encountered a couple of significant, unplanned issues:
Secondary Issue:
Proposed Solutions:
I look forward to your feedback on these proposals to ensure we can move forward effectively. |
@kidroca Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Assigning @situchan as C+ to review first since the PR got assigned to me. |
@puneetlath, @kidroca, @situchan Huh... This is 4 days overdue. Who can take care of this? |
Status Update
Addressed Unplanned Issues
To address this, I've implemented a filter in the fullscreen carousel to exclude duplicate attachments, ensuring only unique items are displayed. This approach simplifies the logic and enhances the carousel's user experience.
I've updated the filename extraction logic to assign a generic filename (e.g.,
A follow-up PR has been opened in expensify-common to escape Markdown special characters in the alt attribute, preventing unintended HTML conversion. All issues are now resolved, making the feature ready for review and QA. The solutions are straightforward and add minimal complexity (about 30 line changes), offering a solid foundation for any potential future enhancements. |
Status Update🟢 All related PRs have been approved. I've made a final pass to address minor points and clarifications:
Potential Follow-UpsPost-merge, we might need to tackle:
|
Payment is still pending. @quinthar can you please reopen and add PRs I reviewed: |
@marcaaron can you please reopen and add |
Triggered auto assignment to @muttmuure ( |
@muttmuure @situchan was C+ on this one |
Not sure how this was missed @situchan here's a payment issue: https://www.upwork.com/jobs/~021838962709358979103 |
This is super old issue before price change and original bounty ($500) applies here
Please remove |
@situchan can you please accept the job and reply here once you have? Also, confirmed the date was when we were paying $500 |
Accepted thanks |
This is super old issue so I am not sure if we already created regression tests for inline image markdown. |
@situchan can you propose the steps plz? I'd like to create the GH issue, QA can review and close if it's not needed. Thx |
Regression Test
|
Thanks @situchan test case created, closing! |
Problem:
NewDot has the ability to display inline image -- we send them all the time from Concierge. But there is no way for a user to send one.
Solution:
Add support for the Markdown image syntax, initially for publicly hosted images to start.
The text was updated successfully, but these errors were encountered: