Skip to content

Commit

Permalink
GenerateGrafanaFunctionsMarkdown: Added less-than / greater-thane HTM…
Browse files Browse the repository at this point in the history
…L entity replacements
  • Loading branch information
ritchiecarroll committed Dec 21, 2024
1 parent 74d6233 commit a62e946
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 a62e946

Please sign in to comment.