chatflow Direct output cannot display image #14578

Closed
opened 2026-02-21 19:17:52 -05:00 by yindo · 2 comments
Owner

Originally created by @jiayi-1994 on GitHub (Jun 12, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.4.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

✔️ Expected Behavior

can use html or markdown?

Actual Behavior

No response

Originally created by @jiayi-1994 on GitHub (Jun 12, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.4.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/c8cbf7de-3306-41aa-bb14-a4d43f439c3f) ### ✔️ Expected Behavior can use html or markdown? ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-21 19:17:52 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jun 12, 2025):

Dify 1.4.1 supports displaying images in chatflow outputs using Markdown image syntax, like ![alt text](image_url). The backend serializes image references as Markdown, and the frontend renders them using a custom Markdown component that supports images via an Img block and ImageGallery for preview and usability. There is no support for raw HTML <img> tags or other HTML elements—certain HTML tags are explicitly disallowed in the renderer, so Markdown is the recommended approach for images. If your images are not displaying, make sure the image URLs are valid and accessible, and that you are using the correct Markdown syntax for images.
See implementation details

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

@dosubot[bot] commented on GitHub (Jun 12, 2025): <!-- Answer --> Dify 1.4.1 supports displaying images in chatflow outputs using Markdown image syntax, like `![alt text](image_url)`. The backend serializes image references as Markdown, and the frontend renders them using a custom Markdown component that supports images via an `Img` block and `ImageGallery` for preview and usability. There is no support for raw HTML `<img>` tags or other HTML elements—certain HTML tags are explicitly disallowed in the renderer, so Markdown is the recommended approach for images. If your images are not displaying, make sure the image URLs are valid and accessible, and that you are using the correct Markdown syntax for images. [See implementation details](https://github.com/langgenius/dify/blob/b2ac11bc47b77e4a2dede3799fe34cc15ce9deda/web/app/components/base/markdown/index.tsx) <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/779f1e46-7ccb-4d03-a30c-816615cb1628?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/779f1e46-7ccb-4d03-a30c-816615cb1628?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/779f1e46-7ccb-4d03-a30c-816615cb1628?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/779f1e46-7ccb-4d03-a30c-816615cb1628?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/779f1e46-7ccb-4d03-a30c-816615cb1628?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/779f1e46-7ccb-4d03-a30c-816615cb1628?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/779f1e46-7ccb-4d03-a30c-816615cb1628?feedback_type=other)</sup>&nbsp;&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify/issues/20951)
Author
Owner

@jiayi-1994 commented on GitHub (Jun 12, 2025):

image2 use the Markdown ,but the image cannot display

@jiayi-1994 commented on GitHub (Jun 12, 2025): image2 use the Markdown ,but the image cannot display
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#14578