You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(link): add full Markdown link navigation support
- Main App: Enable links to external URLs, local files, and anchors
- QuickLook: Show non-intrusive toast for all links due to sandbox limitations
- JavaScript: Handle anchor clicks in JS, send other links to Swift via message handler
- Swift: Add linkClicked message handler and toast notification system
- Documentation: Update CHANGELOG and README with link navigation information
Copy file name to clipboardExpand all lines: README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ A macOS QuickLook extension to beautifully preview Markdown files with full rend
14
14
-**Syntax Highlighting**: Code blocks with language-specific highlighting
15
15
-**Emoji**: Full emoji support with `:emoji_name:` syntax
16
16
-**Table of Contents**: Auto-generated, collapsible navigation panel with smart highlighting
17
+
-**Link Navigation**: Full link support in the main app. Click links to open external URLs, navigate to local files, or scroll to anchors. QuickLook shows a non-intrusive toast due to sandbox limitations.
17
18
-**Theme**: Configurable appearance (Light, Dark, or System). Defaults to Light mode for better readability.
18
19
-**Zoom**: Keyboard shortcuts (`Cmd +/-/0`), scroll wheel zoom (hold `Cmd` and scroll), and pinch gesture (two-finger pinch) with persistence
19
20
-**Scroll Position Memory**: Automatically remembers scroll position for eachMarkdown file and restores it on next preview
@@ -197,6 +198,25 @@ Or simply select any `.md` file in Finder and press Space (QuickLook shortcut).
197
198
**To grant permissions without dialog:**
198
199
- You can pre-authorize in System Settings before using the app
199
200
201
+
### Link Navigation in QuickLook
202
+
203
+
**Problem:** Clicking links in QuickLook preview shows a toast notification instead of navigating.
204
+
205
+
**Why this happens:**
206
+
- macOS App Sandbox restricts QuickLook extensions from opening files or external URLs
207
+
- This is a system-level security feature that cannot be bypassed
208
+
- The toast is a non-intrusive way to inform users about this limitation
209
+
210
+
**Solution:**
211
+
- Double-click the `.md` file to open it in the main app instead
212
+
- The main app has full link navigation support without sandbox restrictions
213
+
214
+
**Supported link types (Main App only):**
215
+
- External URLs: `https://example.com` → Opens in default browser
216
+
- Relative paths: `./other.md` or `../dir/file.md` → Opens the target file
217
+
- Anchors: `#section` → Smooth scroll to the section
218
+
- All file types: `.md`, `.sql`, `.py`, `.json`, etc. → Opens with default app
219
+
200
220
## Acknowledgements
201
221
202
222
This project is significantly inspired by and utilizes portions of [markdown-preview-enhanced](https://github.com/shd101wyy/markdown-preview-enhanced), created by Yiyi Wang (shd101wyy). We sincerely thank the author for their excellent work.
0 commit comments