-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
WebP, SVG and Placeholder Video Thumbnail Support. #49
Comments
The .svg and .webp images are in the same folder of the markdown file? In the app editor if you write by hand the code the images are searched from the resource bundle of the app. Otherwise if you open an .md file, the basedir is the folder of the .md file. |
Yes, The .svg and .webp images are in the same folder. I tested every condition, it doesn't work for me.
|
Can you share the .md and .svg file? |
Please try release 17. Regarding the preview of the videos I don't think to implement it. Security restrictions prevent you from accessing video files from the quick look preview. |
Thanks, video thumbnails is not important. SVG fixed but WEBP is still not displayed. |
Quick Look doesn't play animated webp by default. I think QLMarkdown should show static WebP. |
In the terminal, what is the output of this command?
It should be file --mime-type -m /Applications/QLMarkdown.app/Contents/Resources/magic.mgc PATH_OF_WEBP_FILE The result should always be Can you provide a webp animated file? |
webp images |
on release 18 should be fixed (also support for animated .webp). |
@sbarex SVG works if this option is selected. but this is not inline HTML code -> |
This behavior is caused by cmark. When html content is not allowed, it automatically performs a series of extra checks in search of dangerous content. For the images, it checks their url, removing any it thinks are not safe. In the case of the |
I know, Github's
README.MD
does not support inline SVG , WebP and videos. Maybe features specific to macOS can be considered.The Quick Look HTML preview supports the following;
QLMarkdown cannot display the following;
Inline HTML
<img src="image.webp" alt="">
<source src="video.mov" type="video/mp4">
Markdown
![SVG](image.svg)
![WEBP](image.webp)
The text was updated successfully, but these errors were encountered: