Skip to content

Commit

Permalink
Added replacement for controlled character
Browse files Browse the repository at this point in the history
 - Replaced < and > with encoded characters
  • Loading branch information
tbm0115 committed Aug 16, 2024
1 parent 0581930 commit 8e7d256
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ public partial class VisualStudioSummaryInterpreter : CommonMarkdownInterpreter
/// <inheritdoc />
public VisualStudioSummaryInterpreter() : base() { }

/// <inheritdoc />
public override string Interpret(string input)
{
input = input.Replace("<", "&lt;").Replace(">", "&gt;");
return base.Interpret(input);
}

/// <inheritdoc />
public override string AppendixInterpreter(string contents)
=> UnhandledInterpreter(contents);
Expand Down
2 changes: 1 addition & 1 deletion MtconnectTranspiler/MtconnectTranspiler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Title>MTConnect Transpiler</Title>
<Version>2.4.0-prerelease.4</Version>
<Version>2.4.0-prerelease.5</Version>
<Authors>mtconnect, tbm0115</Authors>
<Company>MTConnect Institute; TAMS;</Company>
<Description>A library capable of parsing an XMI for the MTConnect Standard and passing it to an implemented transpiler.</Description>
Expand Down

0 comments on commit 8e7d256

Please sign in to comment.