Add MarkdownViewer

This commit is contained in:
Paddy Xu
2017-05-15 00:07:22 +03:00
parent f18aa022f7
commit a65ddce4cf
17 changed files with 638 additions and 49 deletions
@@ -8,7 +8,7 @@ namespace QuickLook.Plugin.HtmlViewer
{
private WebkitPanel _panel;
public int Priority => Int32.MaxValue;
public int Priority => int.MaxValue;
public bool CanHandle(string path)
{
@@ -37,6 +37,7 @@ namespace QuickLook.Plugin.HtmlViewer
{
_panel = new WebkitPanel();
context.ViewerContent = _panel;
context.Title = Path.IsPathRooted(path) ? Path.GetFileName(path) : path;
_panel.Navigate(path);
context.IsBusy = false;