Comments (13)
on release 18 should be fixed (also support for animated .webp).
from qlmarkdown.
I think, you should write this in the documentation. --> "This option must be selected for SVG preview"
from qlmarkdown.
The .svg and .webp images are in the same folder of the markdown file?
On my mac the svg and webp preview works.
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.
from qlmarkdown.
The .svg and .webp images are in the same folder of the markdown file?
On my mac the svg and webp preview works.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.
![test](./test.svg)
from qlmarkdown.
Can you share the .md and .svg file?
from qlmarkdown.
@sbarex https://yadi.sk/d/HZ0pKfqjy0LO-g
from qlmarkdown.
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.
An extension should be created that analyzes the .md file looking for html code containing a video, reads the file, obtains the preview and inserts it in the formatted html code...
Moreover Apple does not directly manage many video formats (webm, mkv, avi, ...) and you should use external libraries such as ffmpeg.
A lot of work for a non-standard functionality for the .md language.
from qlmarkdown.
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.
An extension should be created that analyzes the .md file looking for html code containing a video, reads the file, obtains the preview and inserts it in the formatted html code...
Moreover Apple does not directly manage many video formats (webm, mkv, avi, ...) and you should use external libraries such as ffmpeg.
A lot of work for a non-standard functionality for the .md language.
Thanks, video thumbnails is not important. SVG fixed but WEBP is still not displayed. ![test](./webp_test.webp)
from qlmarkdown.
Quick Look doesn't play animated webp by default. I think QLMarkdown should show static WebP.
from qlmarkdown.
In the terminal, what is the output of this command?
$ file --mime-type PATH_OF_WEBP_FILE
It should be image/webp
.
Also, if the QLMarkdown app in on the Applications folder try this command:
file --mime-type -m /Applications/QLMarkdown.app/Contents/Resources/magic.mgc PATH_OF_WEBP_FILE
The result should always be image/webp
.
Can you provide a webp animated file?
from qlmarkdown.
➜ Desktop file --mime-type ./webp_test.webp
./webp_test.webp: image/webp
➜ Desktop file --mime-type -m /Applications/QLMarkdown.app/Contents/Resources/magic.mgc ./webp_test.webp
./webp_test.webp: image/webp
webp images
https://developers.google.com/speed/webp/gallery1
from qlmarkdown.
@sbarex SVG works if this option is selected. but this is not inline HTML code -> ![test](./test.svg)
. This is a valid Markdown syntax. This is confusing for the end user. Indicates that these options are unreliable.
from qlmarkdown.
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 data:
scheme (used to embed the image file inside the html output preventing the security limitation of the Quick Look engine) only these mime types are allowed: image/png
image/gif
, image/jpeg
, image/webp
.
from qlmarkdown.
Related Issues (20)
- Errors building from source HOT 3
- Warning that 'application needs to be updated' HOT 3
- Option to simply get raw text preview? HOT 2
- Sometimes cannot select text in quicklook window
- Math equation HOT 3
- How to speed up rendering of preview? HOT 1
- Option to disable page border HOT 3
- How can you open markdown files without the .md extension?
- Can not use Quick Look HOT 2
- Feature Request: Rendering .rst files as well? HOT 2
- Background flashes white before turning black (in dark mode) HOT 2
- Not working on Monterey HOT 5
- Cannot render escaped $ symbol when I turn on Math extension HOT 1
- The title of the exported HTML document is always `.md` HOT 3
- Although QLMarkdown.app can open the .md file, it does not appear in the "Open With" menu. HOT 3
- Remove border around page content in Finder preview/exported HTML file? HOT 1
- another UTI associated to .md files HOT 1
- Warn when modifications were made upon closing a document HOT 1
- Allow setting light/dark mode HOT 1
- Unable to disable about info. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qlmarkdown.