sbarex / qlmarkdown Goto Github PK
View Code? Open in Web Editor NEWmacOS Quick Look extension for Markdown files.
License: GNU General Public License v3.0
macOS Quick Look extension for Markdown files.
License: GNU General Public License v3.0
monospace
font by default. (Menlo)After launching the app, no extension is installed in Library/Extensions, so quick-looking an md file does not use QLMarkdown for rendering.
Running Big Sur 11.1 on a 2014 MBP.
Hello,
Would it be possible to have an option to render the YAML header part as a table, maybe separated with a horizontal rule (line) ? Or maybe you can come up with even better :D
E.g.:
YAML header:
Title: My Title
Author: Steve jobs
Date: Tuesday, March 23, 2021
Abstract: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quisque id diam vel quam elementum pulvinar. Orci nulla pellentesque dignissim enim. Magna fringilla urna porttitor rhoncus dolor purus. Mollis nunc sed id semper risus in hendrerit gravida rutrum."
Becomes (equivalent markdown rendering):
|||
|-|-|
**Title** | My Title
**Author** | Steve jobs
**Date** | Tuesday, March 23, 2021
**Abstract** | "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quisque id diam vel quam elementum pulvinar. Orci nulla pellentesque dignissim enim. Magna fringilla urna porttitor rhoncus dolor purus. Mollis nunc sed id semper risus in hendrerit gravida rutrum."
I feel this is much more readable. Thank you so much for your extension !
Only when viewing in full screen. I am experiencing heavy freezes when scrolling two fingers. this only happens in .md preview with qlmarkdown.
For this reason I could not test other settings. #25. Also "open on default browser
" doesn't work.
![](file name having whitespace.png)
## Images
### Filename without whitespace
![](1.png)
### Filename with whitespace
![](1 b.png)
## Table
| Column One | Column Two |
| :--- | :--- |
| Text 1 | Text 2 |
| ![](1.png) | ![](1 b.png) |
| ![](1.png) | ![](1.png) |
| ![](1 b.png) | ![](1 b.png) |
https://github.com/sbarex/QLMarkdown/releases/tag/1.0.6
got a notification from the app that 1.0.6 was available, but failed to download... when I came here to check, I see the source was released but no zip file in the assets. Was there a problem with the build process? Just checking π
Version 1.0 (9)
The line numbers and the css I choose, are reset. the program seems to have no memory. (Only in GUI)
Every release that is pushed, running QLMarkdown.app does not trigger an auto-update. I have to manually go to the QLMarkdown menu and select 'Check for Updates'. Can we add the new version notification popup dialog to Sparkle here?
Dyld Error Message:
Library not loaded: @rpath/Sparkle.framework/Versions/A/Sparkle
Referenced from: /Users/USER/Downloads/QLMardown.app/Contents/MacOS/QLMardown
Reason: image not found
QLmarkdown 1.0 (21)
Model Identifier: MacBookPro13,3
Processor Name: Quad-Core Intel Core i7
Processor Speed: 2,7 GHz
Memory: 16 GB
SSD disk.
There is 1- 1.5 second delay for this README.md; https://github.com/mazznoer/colorgrad
qlmanage -m shows nothing for markdown files. If I ql them, they just appear as plain text.
MacOS 10.15.7
qlMarkdown 1 b22
Header anchors are working on native quick view html preview.
Just to mention that it isn't enough to have this selected:
View -> Show Preview Options -> Show Quick Actions
you also need:
View -> Show View Options -> Show preview column
could be added somewhere to the excellent readme file.
Clicking on the βOliveβ theme can reproducibly crash the application.
Crashing on exception: -[__SwiftValue _getValue:forType:]: unrecognized selector sent to instance 0x6000025c0cf0
I cannot scroll using my mouse on the preview generated from QLMarkdown using my external mouse. Other previews work fine (PDFs, TXT, RTF,...)
Markdown QL Extension_2021-05-23-210845_MacBook-Pro.txt
PS: I think SourceCodeSyntaxHighlight has this same bug, but console.app doesn't report anything
QLMarkdown - Version 1.0 (19)
similar error #5.
There was an error in the org.sparex.QLMarkdown.QLExtension extension while previewing the document.
reproduction;
Process: QLMardown [1009]
Path: /Applications/QLMardown.app/Contents/MacOS/QLMardown
Identifier: org.sbarex.QLMardown
Version: 1.0 (2)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: QLMardown [1009]
User ID: 501
Date/Time: 2020-12-26 23:57:41.511 +0300
OS Version: macOS 11.1 (20C69)
Report Version: 12
Bridge OS Version: 3.0 (14Y908)
Anonymous UUID: 8B61B530-6807-470D-ACC0-1399548BB6D7
Time Awake Since Boot: 2000 seconds
System Integrity Protection: enabled
Crashed Thread: 0
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: DYLD, [0x1] Library missing
Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
dyld: Using shared cache: 467A83CB-BA86-3F07-B652-B9256C74080A
Library not loaded: /usr/local/opt/libmagic/lib/libmagic.1.dylib
Referenced from: /Applications/QLMardown.app/Contents/Frameworks/libwrapper_highlight.dylib
Reason: image not found
Binary Images:
0x10e594000 - 0x10e79bfff +org.sbarex.QLMardown (1.0 - 2) <D53EAE94-F0AF-3E45-9C3B-BEDF00FA2D17> /Applications/QLMardown.app/Contents/MacOS/QLMardown
0x10f005000 - 0x10f180fff +libwrapper_highlight.dylib (0) <A7D06A54-A2F2-36FE-9C28-9596B5EC5059> /Applications/QLMardown.app/Contents/Frameworks/libwrapper_highlight.dylib
0x111ce4000 - 0x111d7ffff dyld (832.7.1) <DEA51514-B4E8-3368-979B-89D0F8397ABC> /usr/lib/dyld
0x7fff201cc000 - 0x7fff20204fff libobjc.A.dylib (818.2) <45EA2DE2-B612-3486-B156-2359CE279159> /usr/lib/libobjc.A.dylib
0x7fff20291000 - 0x7fff202e6fff libc++.1.dylib (904.4) <AE3A940A-7A9C-3F99-B175-3511528D8DFE> /usr/lib/libc++.1.dylib
0x7fff203ac000 - 0x7fff20847fff com.apple.CoreFoundation (6.9 - 1770.300) <EAC298C4-CE3E-3551-A832-42ED9A13EF74> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff21159000 - 0x7fff214bcfff com.apple.Foundation (6.9 - 1770.300) <44A7115B-7FF0-3300-B61B-0FA71B63C715> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x7fff22c0a000 - 0x7fff2396cfff com.apple.AppKit (6.9 - 2022.20.119) <4CB42914-672D-3AF0-A0A5-2209088A3DA0> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x7fff24f0e000 - 0x7fff255a1fff com.apple.CoreGraphics (2.0 - 1463.2.2) <323F725F-CB03-3AAD-AFBC-37B430B3FD4E> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x7fff2a531000 - 0x7fff2a532fff libSystem.B.dylib (1292.60.1) <A7FB4899-9E04-37ED-9DD8-8FFF0400879C> /usr/lib/libSystem.B.dylib
0x7fff2c706000 - 0x7fff2caecfff libswiftCore.dylib (5.3.1 - 1200.2.41) <3C7C7068-C6C7-3C82-A7ED-4454766B8E0A> /usr/lib/swift/libswiftCore.dylib
0x7fff2ff13000 - 0x7fff2ff13fff com.apple.CoreServices (1122.11 - 1122.11) <5DDB040C-6E92-3DBE-9049-873F510F26E2> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x7fff30577000 - 0x7fff306ebfff libswiftFoundation.dylib (20) <417CD1C7-A56A-3844-AAD9-6BFC3C348C13> /usr/lib/swift/libswiftFoundation.dylib
0x7fff31636000 - 0x7fff3164bfff libswiftDispatch.dylib (4.40.2) <B6AAD8BA-45E1-347F-B2B1-419F3D5BEACF> /usr/lib/swift/libswiftDispatch.dylib
0x7fff335e2000 - 0x7fff335e3fff libswiftObjectiveC.dylib (1) <AC2752B1-F2AB-375F-89CD-1A667587D9A3> /usr/lib/swift/libswiftObjectiveC.dylib
0x7fff335e4000 - 0x7fff335f4fff libswiftos.dylib (1000.40.3) <35AD02CD-7223-3923-BC84-2F894DBBDE97> /usr/lib/swift/libswiftos.dylib
0x7fff3c467000 - 0x7fff3c471fff libswiftCoreGraphics.dylib (2) <4958FE0E-ABB6-379B-9B0A-FE170AE0A87E> /usr/lib/swift/libswiftCoreGraphics.dylib
0x7fff3c472000 - 0x7fff3c47bfff libswiftDarwin.dylib (??? - ???) <CDFB8363-3A90-33F3-957A-FBC114E66F8D> /usr/lib/swift/libswiftDarwin.dylib
0x7fff3dd1a000 - 0x7fff3dd1afff libswiftCoreFoundation.dylib (1.6) <EEDE4AFB-E921-3B6E-BEF9-85E94B86F472> /usr/lib/swift/libswiftCoreFoundation.dylib
0x7fff3dd26000 - 0x7fff3dd26fff libswiftXPC.dylib (1.1) <AE90953B-1D6B-3716-81D2-65B76B5AF528> /usr/lib/swift/libswiftXPC.dylib
0x7fff3dd27000 - 0x7fff3dd27fff libswiftCoreImage.dylib (1) <9FA55C9D-E6C2-3B24-A43E-9388EE5DE86C> /usr/lib/swift/libswiftCoreImage.dylib
0x7fff3dd28000 - 0x7fff3dd28fff libswiftIOKit.dylib (1) <651621B4-9381-31FC-872B-E0BB9265EE9F> /usr/lib/swift/libswiftIOKit.dylib
0x7fff4191f000 - 0x7fff41920fff libswiftCoreLocation.dylib (5) <53B79035-0802-3E99-AD92-1F866D9A5DED> /usr/lib/swift/libswiftCoreLocation.dylib
0x7fff42229000 - 0x7fff4222dfff libswiftCoreData.dylib (3) <2EB3B3C4-7463-35AB-9CC8-778065C97FC5> /usr/lib/swift/libswiftCoreData.dylib
0x7fff464fe000 - 0x7fff46503fff libswiftMetal.dylib (1.3.1) <24B7851E-1439-3184-96EF-2780602A61E4> /usr/lib/swift/libswiftMetal.dylib
0x7fff4650a000 - 0x7fff46515fff libswiftCloudKit.dylib (962) <FC90CD4E-614F-3673-9E13-81B0DF025909> /usr/lib/swift/libswiftCloudKit.dylib
0x7fff48b0f000 - 0x7fff48b23fff libswiftAppKit.dylib (103.10) <A8A94895-CE8D-35B2-8E1C-CC19A8140E98> /usr/lib/swift/libswiftAppKit.dylib
0x7fff48b24000 - 0x7fff48b25fff libswiftQuartzCore.dylib (1) <8EA8BAF8-E175-3167-B80C-0CF36505E599> /usr/lib/swift/libswiftQuartzCore.dylib
0x7fff4f571000 - 0x7fff4f572fff libswiftOSLog.dylib (1) <E973C27B-18D1-3814-9442-A7B18EB7D78C> /usr/lib/swift/libswiftOSLog.dylib
0x7fff59208000 - 0x7fff5920bfff libswiftWebKit.dylib (7610.3.7.1.9) <958BE7A5-A772-319F-85E0-489F30273410> /usr/lib/swift/libswiftWebKit.dylib
Model: MacBookPro13,3, BootROM 429.60.3.0.0, 4 processors, Quad-Core Intel Core i7, 2,7 GHz, 16 GB, SMC 2.38f11
Graphics: kHW_IntelHDGraphics530Item, Intel HD Graphics 530, spdisplays_builtin
Graphics: kHW_AMDRadeonPro455Item, AMD Radeon Pro 455, spdisplays_pcie_device, 2 GB
Memory Module: BANK 0/DIMM0, 8 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C31473332443450472D30393320
Memory Module: BANK 1/DIMM0, 8 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C31473332443450472D30393320
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x15A), Broadcom BCM43xx 1.0 (7.77.111.1 AirPortDriverBrcmNIC-1675.1)
Bluetooth: Version 8.0.2f9, 3 services, 18 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB 3.0 Bus
USB Device: Apple T1 Controller
Thunderbolt Bus: MacBook Pro, Apple Inc., 41.2
Thunderbolt Bus: MacBook Pro, Apple Inc., 41.2
I often use the Spotlight window to copy text to the clipboard. I can use clipboard for TXT, CSV files. but in QLMarkdown preview I can only copy the file path. (Press TAB key to open preview during Spotlight search.)
π And you fixed something which did not work in the old QLMarkdown:
Title is a bit misleading, not all of them are broken but some. Presumably due to the handling of special characters.
link to [section](#a-preamble)
### A) Preamble
...
Github is removing special characters before creating the title reflink label. In the case above the closing parenthesis. Though I don't know what the set of special characters is. But the example above does work on Github β just not in the preview.
Syntax highlighting in an .Rmd
file only works for me if the fenced code block starts with
```r
whereas it should work if the fenced code block starts with
```{r}
Hi there, I wonder why this is not release on the mac store, I was using https://apps.apple.com/us/app/previewmarkdown/id1492280469?mt=12 and it has just 5% of what QLMarkdown provide.
Please consider providing an easy access for mac user in exchange for some financial tokens like 2.99$.
Best of luck
Hello,
You kindly ask to report such new entry, so, here it is : on Monterey, it looks like the
mdls -name kMDItemContentType PATH_OF_AN_EXISTS_MD_FILE
is giving a new beast
kMDItemContentType = "public.markdown"
which, maybe, explains why, on my MacBook Pro (M1 Max), your so appreciated QuickLook extension is not working anymore.
The changes are reflected even without a Finder restart but it takes more time. It was nearly one minute on my machine at one point. But like @sbarex said some caching issues. Maybe there is a way to tell macOS to force prune the cache?
Originally posted by @relikd in #3 (comment)
The document font is set to -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji, Segoe UI Emoji;
.
In this way some emoji are rendered with system font and not the apple color. For example the heart.
Two solutions:
<span class="emoji">β€</span>
and customize the font for the class in the CSS@hazarek what do you think?
[minor cosmetic issue]
In a possibly ironic twist, the [^footnote]
marks in the README.md file don't render in the browser as jump links and just appear as plain text on the GitHub repo page displaying the README file.
I'm guessing this is a markdown feature not supported by GitHub.
I noticed that the application is named QLMardown
instead of QLMarkdown
. Is that intentional?
I know, Github's README.MD
does not support inline SVG , WebP and videos. Maybe features specific to macOS can be considered.
Inline HTML
<img src="image.webp" alt="">
<source src="video.mov" type="video/mp4">
Markdown
![SVG](image.svg)
![WEBP](image.webp)
Note: Embedded webp is not displayed.
<img src="data:image/webp;base64........
Inline local images doesn't work in the trash folder. (Trash window)
Hello again,
Would it be possible to add an option to render admonitions?
!!! question Can you make the best Quicklook markdown previewed ever ?
YES !
Here's examples of how to render them nicely:
If you're really up for the challenge, there's ALOT of insanely great features and beautiful rendering ideas that could be integrated into this previewer: MkDocs Material Design > Reference
v 1.0 (14)
CRASH - Download and try this file, copy-paste into QLMarkdown window -> https://github.com/ikatyang/emoji-cheat-sheet/blob/master/README.md or https://gist.github.com/rxaviers/7360908
This is on MacOS 12.0 beta, so I'm only adding it because I don't see it listed yet:
When quicklooking files, the Markdown QL Extension Web Content process is launched, once for every file viewed, but those processes never close.
Although they do not appear to be using CPU each process is eating about 10MB of RAM. Today after doing a bunch of file maintenance I realized QLMarkdown was using 700+ MB of RAM
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.