Commit Graph

42 Commits

Author SHA1 Message Date
ema
28ec7655f8 Code Cleanup 2024-12-12 01:21:18 +08:00
ema
66d5c36cbc Reduce duplicate dependencies on publish files 2024-12-07 06:09:14 +08:00
ema
77b5eb454e Reduce duplicate dependencies on publish files 2024-12-07 04:58:07 +08:00
ema
50276003f8 Mark markdown web files as linguist-vendored 2024-12-06 17:54:31 +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
ema
06e796ac0b Merge pull request #1490 from KamilDev/feature/improve-markdown-viewer
Improved MarkdownViewer
2024-12-06 10:02:20 +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
ema
a5c3d5b143 Restore AssemblyInfo 2024-12-04 16:53:51 +08:00
ema
507b157a40 Convert to .NET SDK type csproj 2024-11-30 17:00:22 +08:00
Paddy Xu
f726841d99 update deps 2021-11-15 23:52:02 +01: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
0d8d405cc2 Fix #639: MathJax in Markdown viewer 2020-05-16 21:14:35 +03: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
197bfee1da fix path 2018-02-12 19:30:29 +02:00
Paddy Xu
56af2311b9 abstract plugin interface 2018-02-12 19:30:28 +02:00
Paddy Xu
804876a987 remove strong-name signing 2018-01-27 14:44:53 +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
Paddy Xu
f15f65192d sign all compoments 2017-08-02 00:29:41 +03:00
Paddy Xu
61074fea2c Revert "Sign all projects with strong names"
This reverts commit d98afaa4dc.
2017-07-15 21:29:35 +03:00
Paddy Xu
d98afaa4dc Sign all projects with strong names 2017-07-15 15:07:41 +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
3101059b4d x64 Any CPU support 2017-06-03 02:51:22 +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
3af6448b50 move to .net 4.6.2 2017-05-28 15:59:53 +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