-
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
[HOLD for payment 2024-10-24] [Live Markdown] Show the inline image in the live preview #40181
Comments
Triggered auto assignment to @anmurali ( |
|
cc @tomekzaw |
Triggered auto assignment to @dubielzyk-expensify ( |
We'll need some design input here on how we should show the images in the composer for live markdown |
We'd like to implement this feature in Live Markdown. |
Started a discussion here. Think there's a few things to agree on before we move forward with it. |
@tomekzaw looks like we made a decision on that slack thread on how to proceed. Any updates here on progress since then? |
I've asked @Skalakid from SWM to prepare a PoC on web, he's working on it. |
Any update on this one @Skalakid? |
Hi @thienlnam, I'm still building inline images PoC. I had to take a quick break from that because I needed to fix some other critical bugs. Now, most of them are fixed and I'm fully focused on the inline images feature. I was able to add an image preview from the URL into the Live Markdown Input. When testing I noticed that there are some problems with cursor positioning and with image preview reloading. These problems are blocking us from adding this feature, especially the one with cursor positioning. We will need to make some web parser logic changes to fix them. The parser changes will enable us to add new markdown features quicker and easier and will allow us to use more styling options without introducing critical layout bugs. |
@Skalakid what are the next steps, and your ETA? |
The current steps are:
More info about ETA in Slack thread |
Hello, since the original PR was reverted, I will create another one that will fix reported critical issues |
Here is a new PR to the E/App that enables inline image preview feature on web |
I'll take a look at it today |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.49-2 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 2024-10-24. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
We'll also need a C+ paying to @hungvu193 here as well |
Payment Summary
BugZero Checklist (@anmurali)
|
Payment Summary
|
@anmurali Do you mean 250 instead of 450? |
Little bump @anmurali . Can you please correct the payment summary? It should be $250 😃 |
$250 approved for @hungvu193 |
https://expensify.slack.com/archives/C0671JDRKQW/p1712266105476139?thread_ts=1711736045.870539&cid=C0671JDRKQW
Problem:
While the live markdown preview now successfully avoids exceptions when rendering inline images, it currently does not display these images as expected. Users expect to see a real-time preview of all markdown elements, including images, to ensure their content is formatted correctly before publishing or saving. This lack of functionality in the previewer impacts user confidence in the document's final appearance, leading to a disjointed editing experience.
Solution:
Enhance the live markdown previewer to correctly parse and display inline images within the markdown content. This will involve updating the markdown parsing logic to handle image URLs and embed them appropriately in the preview pane. The update should support a variety of image formats and ensure that image links are not broken during the preview.
Issue Owner
Current Issue Owner: @anmuraliThe text was updated successfully, but these errors were encountered: