Commit Graph

17 Commits

Author SHA1 Message Date
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
c0ca430883 Fix #733: detect Markdown encoding 2020-09-20 13:44:11 +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
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
Paddy Xu
3101059b4d x64 Any CPU support 2017-06-03 02:51:22 +03:00
Paddy Xu
3af6448b50 move to .net 4.6.2 2017-05-28 15:59:53 +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