Commit Graph

12 Commits

Author SHA1 Message Date
ema
4dff887ec1 Review and clean up codes 2024-12-07 00:51:46 +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
ema
507b157a40 Convert to .NET SDK type csproj 2024-11-30 17:00:22 +08:00
Paddy Xu
237b99b305 Fix #941: caller assembly is incorrect in RELEASE mode 2021-06-27 11:22:02 +02:00
Paddy Xu
8ee6c770c4 Update copyright header 2021-01-10 20:12:25 +01:00
Paddy Xu
6a0c116bd4 Fix WebView2 data path 2021-01-10 17:18:43 +01:00
Paddy Xu
7cf0d0affb Fix #539: replace IE WebView with Edge WebView2 2021-01-10 14:50:56 +01:00
Paddy Xu
ea55fda70a use helper call 2018-11-07 20:32:47 +02:00
Verrickt
3de59702f4 Make HTML viewer and Markdown viewer per monitor DPI aware 2018-10-25 19:36:46 +08:00
Paddy Xu
ee6bca704d start working on NConvert 2018-08-12 15:26:03 +03:00