-
-
-
-
- MarkdownPreviewHandler
- PowerToys MarkdownPreviewHandler
- Microsoft Corp.
- Copyright (C) 2020 Microsoft Corporation
- PowerToys
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Debug
- AnyCPU
- {6A71162E-FC4C-4A2C-B90F-3CF94F59A9BB}
- Library
- Properties
- MarkdownPreviewHandler
- MarkdownPreviewHandler
- v4.7.2
- 512
- true
-
- $(SolutionDir)$(Platform)\$(Configuration)\obj\$(AssemblyName)\
-
-
- true
- full
- false
- $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\
- DEBUG;TRACE
- prompt
- 4
- true
- $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\MarkdownPreviewPaneDocumentation.xml
- x64
-
-
- pdbonly
- true
- $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\
- TRACE
- prompt
- 4
- true
- $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\MarkdownPreviewPaneDocumentation.xml
- x64
-
-
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Form
-
-
- Code
-
-
- True
- True
- Resources.resx
-
-
- True
- True
- Settings.settings
-
-
-
-
-
-
-
- 1.11.23
-
-
- 0.20.0
-
-
- 1.1.118
- runtime; build; native; contentfiles; analyzers; buildtransitive
- all
-
-
-
-
- StyleCop.json
-
-
-
-
- {5D00D290-4016-4CFE-9E41-1E7C724509BA}
- Telemetry
-
-
- {af2349b8-e5b6-4004-9502-687c1c7730b1}
- PreviewHandlerCommon
-
-
-
-
- ResXFileCodeGenerator
- Resources.Designer.cs
-
-
-
-
- SettingsSingleFileGenerator
- Settings.Designer.cs
-
-
-
+
+
+
+
+
+
+ MarkdownPreviewHandler
+ PowerToys MarkdownPreviewHandler
+ Microsoft Corp.
+ Copyright (C) 2020 Microsoft Corporation
+ PowerToys
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Debug
+ AnyCPU
+ {6A71162E-FC4C-4A2C-B90F-3CF94F59A9BB}
+ Library
+ Properties
+ MarkdownPreviewHandler
+ MarkdownPreviewHandler
+ v4.7.2
+ 512
+ true
+
+ $(SolutionDir)$(Platform)\$(Configuration)\obj\$(AssemblyName)\
+
+
+ true
+ full
+ false
+ $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\
+ DEBUG;TRACE
+ prompt
+ 4
+ true
+ $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\MarkdownPreviewPaneDocumentation.xml
+ x64
+
+
+ pdbonly
+ true
+ $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\
+ TRACE
+ prompt
+ 4
+ true
+ $(SolutionDir)$(Platform)\$(Configuration)\modules\FileExplorerPreview\MarkdownPreviewPaneDocumentation.xml
+ x64
+
+
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form
+
+
+ Code
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ True
+ Settings.settings
+
+
+
+
+
+
+
+ 1.11.23
+
+
+ 0.20.0
+
+
+ 1.1.118
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+ all
+
+
+
+
+ StyleCop.json
+
+
+
+
+ {5D00D290-4016-4CFE-9E41-1E7C724509BA}
+ Telemetry
+
+
+ {af2349b8-e5b6-4004-9502-687c1c7730b1}
+ PreviewHandlerCommon
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+
\ No newline at end of file
diff --git a/src/modules/previewpane/MarkdownPreviewHandler/MarkdownPreviewHandlerControl.cs b/src/modules/previewpane/MarkdownPreviewHandler/MarkdownPreviewHandlerControl.cs
index cd6581cd60..7eac866096 100644
--- a/src/modules/previewpane/MarkdownPreviewHandler/MarkdownPreviewHandlerControl.cs
+++ b/src/modules/previewpane/MarkdownPreviewHandler/MarkdownPreviewHandlerControl.cs
@@ -1,192 +1,192 @@
-// Copyright (c) Microsoft Corporation
-// The Microsoft Corporation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-
-using System;
-using System.Drawing;
-using System.IO;
-using System.Text.RegularExpressions;
-using System.Windows.Forms;
-using Common;
-using Markdig;
-using MarkdownPreviewHandler.Properties;
-using MarkdownPreviewHandler.Telemetry.Events;
-using Microsoft.PowerToys.Telemetry;
-using PreviewHandlerCommon;
-
-namespace MarkdownPreviewHandler
-{
- ///
- /// Win Form Implementation for Markdown Preview Handler.
- ///
- public class MarkdownPreviewHandlerControl : FormHandlerControl
- {
- ///
- /// Extension to modify markdown AST.
- ///
- private readonly HTMLParsingExtension extension;
-
- ///
- /// Markdig Pipeline builder.
- ///
- private readonly MarkdownPipelineBuilder pipelineBuilder;
-
- ///
- /// Markdown HTML header.
- ///
- private readonly string htmlHeader = "";
-
- ///
- /// Markdown HTML footer.
- ///
- private readonly string htmlFooter = "