Commit Graph

35 Commits

Author SHA1 Message Date
ema
c64885485d Make all Plugin classes sealed
Changed all Plugin classes and PluginManager to be sealed, preventing further inheritance. This improves code safety and clarifies the intended usage of these classes.
2026-01-08 01:06:37 +08:00
ema
a6210e177b Update copyright year to 2026 2026-01-06 02:24:42 +08:00
ema
2c330a0136 Chore of disable nullable in MarkdownViewer 2025-06-24 01:45:52 +08:00
ema
83ae611af1 No markdown resource extraction #1661 #1670 2025-06-24 01:33:07 +08:00
ema
5bf422a17f Delay the initialization of the MarkdownViewer 2025-05-10 08:28:16 +08:00
ema
a0a46832ed Update copyright information 2025-05-06 21:04:58 +08:00
ema
41fa5ed1ed Support more Markdown file extension #1562 #1601 2025-04-28 19:12:04 +08:00
ema
ffecab95be New built-in plugin FontViewer 2024-12-30 03:05:06 +08:00
ema
28ec7655f8 Code Cleanup 2024-12-12 01:21:18 +08:00
ema
fc150febcb Support markdown file ext with .mdown #1349 2024-12-06 12:35:59 +08:00
ema
72d3c3187b Support markdown viewer fallback folder #508 2024-12-06 12:31:51 +08:00
KamilDev
ec62cb4238 Add update mechanism to MarkdownViewer resources, move link opening behavior to WebpagePanel 2024-12-06 01:48:58 +11:00
KamilDev
cf7b6ad46f Improved MarkdownViewer
#### Features
- Uses the latest [github-markdown.css](https://github.com/sindresorhus/github-markdown-css/blob/main/github-markdown.css) file that contains styling support for both dark and light mode.
- Table of Contents has an improved design, and:
	- The width can be resized.
	- TOC headings are automatically highlighted to help track your position in the file.
- Improved fullscreen layout based on Github.com behavior.
- External links clicked will open in default browser instead of doing nothing.
- Uses [markdownItAnchor](https://github.com/valeriangalliat/markdown-it-anchor) to allow heading anchor links in the file to work.
- Uses [highlight.js](https://github.com/highlightjs/highlight.js) to provide syntax highlighting to codeblocks.
#### Changes
- Made changes to allow the `md2html.html` file to use relative file imports for better maintainability.
- MarkdownViewer can now easily be customized by users by modifying files in `<Quicklook data folder>/QuickLook.Plugin.MarkdownViewer/`
- Caching and `localStorage` is now supported thanks to these changes.
- Prevent default behavior of spacebar scrolling the page, while we use spacebar to dismiss the preview.
- Sets `WebView` `DefaultBackgroundColor` to prevent white flash in dark mode. After the page has loaded, sets `DefaultBackgroundColor` back to white to have the expected default behavior on HTML pages that don't specify any background color.
#### Clean up
- Removed the need for `jQuery`.
- Removed old polyfill code.
2024-12-04 22:16:21 +11:00
Paddy Xu
7cf0d0affb Fix #539: replace IE WebView with Edge WebView2 2021-01-10 14:50:56 +01:00
Paddy Xu
c0ca430883 Fix #733: detect Markdown encoding 2020-09-20 13:44:11 +02:00
Paddy Xu
4f496f5ab8 wip plugin installer 2018-08-28 23:49:35 +03:00
Paddy Xu
6bc990bbf9 move to Plugin namespace 2018-02-12 19:30:30 +02:00
Paddy Xu
56af2311b9 abstract plugin interface 2018-02-12 19:30:28 +02:00
Paddy Xu
76dd2feb30 remove all destructors 2018-01-24 19:11:49 +02:00
Paddy Xu
8440bc6fc7 remove transparent window 2017-11-02 21:49:20 +02:00
Paddy Xu
3a20245304 wip 2017-08-06 15:06:55 +03:00
Paddy Xu
60cd782c64 WIP: more new styles 2017-08-06 00:17:51 +03:00
Milly
924d8dd49e Use built-in method instead.
Squashed commit of the following:

commit f7887aeda7
Author: Milly <milly.ca@gmail.com>
Date:   Fri Jun 23 09:26:58 2017 +0900

    Replace "&", "<", ">" to HTML entities in Markdown.
2017-07-01 12:39:32 +03:00
Paddy Xu
a0712e4727 Fix #34: add .markdown file extension 2017-06-22 18:50:32 +03:00
Paddy Xu
3f82076c48 Fix #30: add ToC to Markdown viewer 2017-06-14 20:06:47 +03:00
Paddy Xu
be8f31a8c8 add GPL file header 2017-06-11 20:20:52 +03:00
Paddy Xu
fb394288dd Allow plugin initialization when application starts 2017-06-03 13:07:48 +03:00
Paddy Xu
20fbda1e44 Go back from Webkit to IE render engine 2017-06-02 19:11:15 +03:00
Paddy Xu
8deddb2537 Revert "Go back from Webkit to IE render engine"
This reverts commit f58ef0dcb6.
2017-06-01 20:58:38 +03:00
Paddy Xu
f58ef0dcb6 Go back from Webkit to IE render engine 2017-06-01 19:49:54 +03:00
Paddy Xu
e450971217 better and faster window resize; Add "AllowsTransparency" to plugin interface; Use IPreviewHandler for Office files 2017-05-21 22:02:42 +03:00
Paddy Xu
482325a479 fix memory leak and set object to null when switching viewer target 2017-05-17 21:55:30 +03:00
Paddy Xu
fd080f80e4 reuse plugin instances 2017-05-16 19:52:17 +03:00
Paddy Xu
375b3b9a59 delete useless reference 2017-05-15 00:38:10 +03:00
Paddy Xu
a65ddce4cf Add MarkdownViewer 2017-05-15 00:07:22 +03:00