Implement rendering of images with data urls in markdown (#30322)
Fixes #28266  Release Notes: - Added support for rendering images with data URLs in markdown. This can show up in hover documentation provided by language servers. Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com>
This commit is contained in:
parent
c512d43e8c
commit
29c31f020e
9 changed files with 131 additions and 42 deletions
|
@ -2100,14 +2100,14 @@ impl Window {
|
|||
let (task, is_first) = cx.fetch_asset::<A>(source);
|
||||
task.clone().now_or_never().or_else(|| {
|
||||
if is_first {
|
||||
let entity = self.current_view();
|
||||
let entity_id = self.current_view();
|
||||
self.spawn(cx, {
|
||||
let task = task.clone();
|
||||
async move |cx| {
|
||||
task.await;
|
||||
|
||||
cx.on_next_frame(move |_, cx| {
|
||||
cx.notify(entity);
|
||||
cx.notify(entity_id);
|
||||
});
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue