Skip to content
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

Image doesn't display properly in preview mode #1907

Closed
davuses opened this issue Oct 18, 2020 · 3 comments
Closed

Image doesn't display properly in preview mode #1907

davuses opened this issue Oct 18, 2020 · 3 comments

Comments

@davuses
Copy link

davuses commented Oct 18, 2020

Image doesn't display properly in preview mode.

  • Edit mode:

image

  • Preview mode:

image

But it can be opened in external image viewer with Ctrk - left click hotkey.

@pbek
Copy link
Owner

pbek commented Oct 18, 2020

Thank you for reporting.
Can you please post the output from the debug settings (see issue template).
And is there any useful log output if you enable the log panel (see Window / Panels)? Please make sure you also enable debug logging in the log panel (by right-clicking on the panel and and selecting Debug in Options).

@davuses
Copy link
Author

davuses commented Oct 18, 2020

@pbek Turn out to be the problem of markdown-it script, after disabling this script the image can be rendered properly with the original markdown renderer.

It seems markdown-it script only supports specific image markdown format:

![qownnotes-media-xagnCC](file://media/qownnotes-media-xagnCC-3342373562.png)

![media-LehQCY](../media/media-LehQCY-1237789685.png)

![image](https://user-images.githubusercontent.com/54793121/96361949-7c990a80-115c-11eb-8467-ee6eea06046a.png)

Only the first format will be rendered correctly:

image

But All three formats work with original markdown renderer.

Maybe I should report this issue to the script author?

@pbek
Copy link
Owner

pbek commented Oct 18, 2020

I thought as much. There already is an issue: qownnotes/scripts#77

You can subscribe to that issue.

Meanwhile, I updated the script description to use legacy media links.

@pbek pbek closed this as completed Oct 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants