diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ConvertFromMarkdownCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ConvertFromMarkdownCommand.cs
index a30d9b7a78..4ae70ac4fd 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ConvertFromMarkdownCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ConvertFromMarkdownCommand.cs
@@ -15,7 +15,7 @@ using Dbg = System.Management.Automation;
namespace Microsoft.PowerShell.Commands
{
///
- /// Converts a markdown string to a MarkdownInfo object.
+ /// Converts a Markdown string to a MarkdownInfo object.
/// The conversion can be done into a HTML text or VT100 encoding string.
///
[Cmdlet(
@@ -26,28 +26,28 @@ namespace Microsoft.PowerShell.Commands
public class ConvertFromMarkdownCommand : PSCmdlet
{
///
- /// Gets or sets path to the file to convert from markdown to MarkdownInfo.
+ /// Gets or sets path to the file to convert from Markdown to MarkdownInfo.
///
[ValidateNotNullOrEmpty]
[Parameter(ParameterSetName = PathParameterSet, Mandatory = true)]
public string[] Path { get; set; }
///
- /// Gets or sets the path to the file to convert from markdown to MarkdownInfo.
+ /// Gets or sets the path to the file to convert from Markdown to MarkdownInfo.
///
[ValidateNotNullOrEmpty]
[Parameter(ParameterSetName = LiteralPathParameterSet, Mandatory = true)]
public string[] LiteralPath { get; set; }
///
- /// Gets or sets the InputObject of type System.IO.FileInfo or string with content to convert from markdown to MarkdownInfo.
+ /// Gets or sets the InputObject of type System.IO.FileInfo or string with content to convert from Markdown to MarkdownInfo.
///
[ValidateNotNullOrEmpty]
[Parameter(ParameterSetName = InputObjParamSet, Mandatory = true, ValueFromPipeline = true)]
public PSObject InputObject { get; set; }
///
- /// Gets or sets if the markdown document should be converted to a VT100 encoded string.
+ /// Gets or sets if the Markdown document should be converted to a VT100 encoded string.
///
[Parameter]
public SwitchParameter AsVT100EncodedString { get; set; }
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/MarkdownOptionCommands.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/MarkdownOptionCommands.cs
index 4c849a8be4..88c6cd8e66 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/MarkdownOptionCommands.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/MarkdownOptionCommands.cs
@@ -241,7 +241,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Implements the cmdlet for getting the markdown options that are set.
+ /// Implements the cmdlet for getting the Markdown options that are set.
///
[Cmdlet(
VerbsCommon.Get, "MarkdownOption",
diff --git a/src/Microsoft.PowerShell.MarkdownRender/ListItemBlockRenderer.cs b/src/Microsoft.PowerShell.MarkdownRender/ListItemBlockRenderer.cs
index cc9f38cdaa..857192ae68 100644
--- a/src/Microsoft.PowerShell.MarkdownRender/ListItemBlockRenderer.cs
+++ b/src/Microsoft.PowerShell.MarkdownRender/ListItemBlockRenderer.cs
@@ -45,9 +45,7 @@ namespace Microsoft.PowerShell.MarkdownRender
{
foreach (var subListItem in subList)
{
- var subListItemBlock = subListItem as ListItemBlock;
-
- if (subListItemBlock != null)
+ if (subListItem is ListItemBlock subListItemBlock)
{
foreach (var line in subListItemBlock)
{
diff --git a/src/Microsoft.PowerShell.MarkdownRender/MarkdownConverter.cs b/src/Microsoft.PowerShell.MarkdownRender/MarkdownConverter.cs
index a1041e7978..fae600d23b 100644
--- a/src/Microsoft.PowerShell.MarkdownRender/MarkdownConverter.cs
+++ b/src/Microsoft.PowerShell.MarkdownRender/MarkdownConverter.cs
@@ -10,7 +10,7 @@ using Markdig.Syntax;
namespace Microsoft.PowerShell.MarkdownRender
{
///
- /// Type of conversion from markdown.
+ /// Type of conversion from Markdown.
///
[Flags]
public enum MarkdownConversionType
@@ -27,7 +27,7 @@ namespace Microsoft.PowerShell.MarkdownRender
}
///
- /// Object representing the conversion from markdown.
+ /// Object representing the conversion from Markdown.
///
public class MarkdownInfo
{
@@ -42,20 +42,20 @@ namespace Microsoft.PowerShell.MarkdownRender
public string VT100EncodedString { get; internal set; }
///
- /// Gets the AST of the markdown string.
+ /// Gets the AST of the Markdown string.
///
public Markdig.Syntax.MarkdownDocument Tokens { get; internal set; }
}
///
- /// Class to convert a markdown string to VT100, HTML or AST.
+ /// Class to convert a Markdown string to VT100, HTML or AST.
///
public sealed class MarkdownConverter
{
///
- /// Convert from markdown string to VT100 encoded string or HTML. Returns MarkdownInfo object.
+ /// Convert from Markdown string to VT100 encoded string or HTML. Returns MarkdownInfo object.
///
- /// String with markdown content to be converted.
+ /// String with Markdown content to be converted.
/// Specifies type of conversion, either VT100 or HTML.
/// Specifies the rendering options for VT100 rendering.
/// MarkdownInfo object with the converted output.
diff --git a/src/Microsoft.PowerShell.MarkdownRender/VT100EscapeSequences.cs b/src/Microsoft.PowerShell.MarkdownRender/VT100EscapeSequences.cs
index dbe128a9ac..8d3a283566 100644
--- a/src/Microsoft.PowerShell.MarkdownRender/VT100EscapeSequences.cs
+++ b/src/Microsoft.PowerShell.MarkdownRender/VT100EscapeSequences.cs
@@ -10,7 +10,7 @@ using Markdig.Syntax;
namespace Microsoft.PowerShell.MarkdownRender
{
///
- /// Class to represent color preference options for various markdown elements.
+ /// Class to represent color preference options for various Markdown elements.
///
public sealed class MarkdownOptionInfo
{