Commit Graph

59 Commits

Author SHA1 Message Date
ema
21a3dd3d4b Fix the same previous issue in other plugins
Some checks failed
MSBuild / build (push) Has been cancelled
MSBuild / publish (push) Has been cancelled
2025-08-15 02:17:50 +08:00
Copilot
9fe37520d3 Support Mermaid diagram rendering in MarkdownViewer (#1730)
* Implement Mermaid diagram support for MarkdownViewer

Co-authored-by: emako <24737061+emako@users.noreply.github.com>

* Replace the mermaid.min.js

https://cdn.jsdelivr.net/npm/mermaid@11.4.1/dist/mermaid.min.js

* Fix Mermaid diagram rendering by updating markdown-it highlight function

Co-authored-by: emako <24737061+emako@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: emako <24737061+emako@users.noreply.github.com>
Co-authored-by: ema <mccoy39082@163.com>
2025-08-02 02:09:52 +08:00
copilot-swe-agent[bot]
a38b7a450a Fix code alignment by adding space to align .Replace method calls
Some checks failed
MSBuild / build (push) Has been cancelled
MSBuild / publish (push) Has been cancelled
Co-authored-by: emako <24737061+emako@users.noreply.github.com>
2025-07-23 23:57:13 +08:00
copilot-swe-agent[bot]
8ad5f39eab Add missing using System.Linq to fix compile error
Co-authored-by: emako <24737061+emako@users.noreply.github.com>
2025-07-23 23:57:13 +08:00
copilot-swe-agent[bot]
83cfd2a3d8 Remove unnecessary Translations.config and simplify RTL detection code
Co-authored-by: emako <24737061+emako@users.noreply.github.com>
2025-07-23 23:57:13 +08:00
copilot-swe-agent[bot]
4840a87858 Add RTL support for markdown files
Co-authored-by: emako <24737061+emako@users.noreply.github.com>
2025-07-23 23:57:13 +08:00
ema
32ce27e447 Add MathJax inline math support to Markdown #1640
Some checks are pending
MSBuild / build (push) Waiting to run
MSBuild / publish (push) Blocked by required conditions
2025-07-05 11:58:41 +08:00
ema
3fce8b4f53 Add Lottie Files animation preview support 2025-07-05 09:25:22 +08:00
ema
d7f482511f Update package versions in plugin projects 2025-07-05 05:07:26 +08:00
ema
21071a62d1 Update package dependencies 2025-06-30 02:02:53 +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
06e7dbaae7 Code Cleanup 2025-05-23 02:39:26 +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
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