mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-11 09:49:07 +00:00
Fix #30: add ToC to Markdown viewer
This commit is contained in:
@@ -52,7 +52,7 @@ namespace QuickLook.Plugin.HtmlViewer
|
||||
|
||||
public void Prepare(string path, ContextObject context)
|
||||
{
|
||||
context.PreferredSize = new Size(800, 800);
|
||||
context.PreferredSize = new Size(1000, 600);
|
||||
|
||||
context.CanFocus = true;
|
||||
}
|
||||
|
@@ -115,7 +115,9 @@ namespace QuickLook.Plugin.HtmlViewer
|
||||
private void InnerBrowserNavigating(object sender, NavigatingCancelEventArgs e)
|
||||
{
|
||||
if (_loaded)
|
||||
e.Cancel = true;
|
||||
if (_innerBrowser.Source.Scheme != e.Uri.Scheme ||
|
||||
_innerBrowser.Source.AbsolutePath != e.Uri.AbsolutePath) // allow in-page navigation
|
||||
e.Cancel = true;
|
||||
_loaded = true;
|
||||
}
|
||||
|
||||
|
@@ -52,7 +52,7 @@ namespace QuickLook.Plugin.MarkdownViewer
|
||||
|
||||
public void Prepare(string path, ContextObject context)
|
||||
{
|
||||
context.PreferredSize = new Size(800, 800);
|
||||
context.PreferredSize = new Size(1000, 600);
|
||||
|
||||
context.CanFocus = true;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user