mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-12-21 02:00:34 +08:00
Fix #30: add ToC to Markdown viewer
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user