Skip to content

Commit

Permalink
Merge pull request #350 from GridProtectionAlliance/GenDocsGtLtFix
Browse files Browse the repository at this point in the history
Added less-than / greater-than HTML entity replacements
  • Loading branch information
ritchiecarroll authored Dec 26, 2024
2 parents 101eee9 + ff7f3b5 commit 95cd62c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Source/Tools/GenerateGrafanaFunctionsMarkdown/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ private static string GetCleanMarkdown(string? xmlCommentText)
.ReplaceTag("para", "<br/>")
.ReplaceSeeHref()
.ReplaceSeeCref()
.ReplaceGtLtTags()
.ReplaceExecutionModeLinks()
?? string.Empty;
}
Expand Down Expand Up @@ -218,6 +219,13 @@ public static string ReplaceSeeCref(this string text)
RegexOptions.IgnoreCase | RegexOptions.Singleline);
}

public static string ReplaceGtLtTags(this string text)
{
return text
.Replace("&lt;", "<")
.Replace("&gt;", ">");
}

public static string ReplaceExecutionModeLinks(this string text)
{
return text
Expand Down

0 comments on commit 95cd62c

Please sign in to comment.