bug: markdown images  are not rendered in messages
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 84/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, react
- Área
- frontend
Línea de trabajo
Empieza en packages/markups, en InlineElements, y comprueba cómo se representan otros tipos de nodos analizados. Compara ImageElement de Rocket.Chat en packages/gazzodown para entender el comportamiento de saneamiento de URL descrito en el issue. Añade la representación del nodo IMAGE del parser; el trabajo estará terminado cuando tanto los mensajes con enlaces como los que solo contienen una imagen muestren la imagen y su texto alternativo, de acuerdo con el comportamiento esperado.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description:
A markdown image in a message, , is not shown at all in EmbeddedChat. The text around it is shown, but the image and its alt text disappear, and a message that is only an image renders empty. Rocket.Chat shows the image.
The message parser (@rocket.chat/message-parser) returns an IMAGE node for this syntax:
{"type":"IMAGE","value":{"src":{"type":"PLAIN_TEXT","value":"https://example.com/a.png"},"label":{"type":"PLAIN_TEXT","value":"diagram"}}}
InlineElements in packages/markups has no case for IMAGE, so it returns null. Rocket.Chat's renderer (packages/gazzodown, ImageElement) renders it as an image inside a link, after sanitizing the URL.
Steps to reproduce:
- Send
look  here. - Send
.
Expected behavior:
Both messages show the image, as in Rocket.Chat.
Actual behavior:
The first message shows only "look here", and the second message is empty.
I'd like to send a fix that adds an ImageElement to the markups package, with the same URL sanitizing as Rocket.Chat's.
- Lenguaje dominante
- JavaScript
- Estrellas
- 170
- Forks
- 397
- Merge medio
- 8 d 20 h
- PR fusionados (30 d)
- 6
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de RocketChat/EmbeddedChat
-
Bug: Unused media visibility check and missing useMemo dependencies cause stale/invalid actions in MessageToolbox.jsPosiblemente ocupada @yashsarvaiya45 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
RocketChat/EmbeddedChat#1437 ·
Los mantenedores suelen responder en 1 día
-
bug(layout-editor): theme refinements like "change it to dark" are ignored with AI providersPosiblemente ocupada @arshil42 la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
RocketChat/EmbeddedChat#1433 ·
Los mantenedores suelen responder en 1 día
-
bug: emoji suggestions open for times like 12:00 and Enter inserts an emoji instead of sendingAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
RocketChat/EmbeddedChat#1431 ·
Los mantenedores suelen responder en 1 día
-
bug: editing a multi-line message saves literal \n instead of line breaksPosiblemente ocupada @arshil42 la tomó hoy. Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 92/100
RocketChat/EmbeddedChat#1430 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Nested inline code, emoji and mentions disappear inside bold, italic and strikethroughPosiblemente ocupada @gitseraj la tomó hace 2 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
RocketChat/EmbeddedChat#1429 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de RocketChat/EmbeddedChat
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
sfbrigade/pocket-gardens#60 ·
Los mantenedores suelen responder en 5 días
-
The print preview leaves writing space short by the margins of hidden headers, footers and solutionsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
PreTeXtBook/pretext#3329 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
NativeScript/ios#577 ·
Los mantenedores suelen responder en 1 día
-
could-have
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
-
01 type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días