zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
26.25k stars 1.8k forks source link

(Bug report) When writing in markdown format, the inserted picture bed link does not display the picture #4141

Open xuguangjian opened 11 months ago

xuguangjian commented 11 months ago

Trilium Version

0.60.4

What operating system are you using?

Windows

What is your setup?

Local (no sync)

Operating System Version

Windows 11 家庭中文版 22H2

Description

When writing in markdown format, the inserted picture bed link does not display the picture, and the locally inserted picture can be displayed normally. When the basic attribute is selected as text or markdown in the code, the image bed link cannot be displayed, but when the makdown file is imported, the image link in it can be displayed

书写使用 markdown 格式时,插入的图床链接不显示图片,本地插入图片可以正常显示。 基本属性选择 文本 或者代码里的 markdown 时 ,图床链接都是显示不出来的,但是导入makdown文件时 里面的图片链接可以显示出来 image

image

Error logs

No response

xuguangjian commented 11 months ago

书写使用 markdown格式时,插入的图床链接不显示图片,本地插入图片可以正常显示。 基本属性选择 文本 或者代码里的 markdown 时 ,图床链接都是显示不出来的,但是导入 markdown 文件时 里面的图片链接可以显示出来

SiriusXT commented 11 months ago

This is expected. Trilium uses the rich text editor ckeditor5, which does not support markdown. The type of markdown notes you use can only be displayed in the form of source code.

midormeepo commented 3 months ago

You can use 'Open with Custom Program' to write HTML-formatted external links and save them. After returning, you will be able to see the images.