From a62e94612aa293f7837227f338e437086cd776c0 Mon Sep 17 00:00:00 2001 From: "J. Ritchie Carroll" Date: Sat, 21 Dec 2024 11:39:13 -0600 Subject: [PATCH] GenerateGrafanaFunctionsMarkdown: Added less-than / greater-thane HTML entity replacements --- Source/Tools/GenerateGrafanaFunctionsMarkdown/Program.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/Tools/GenerateGrafanaFunctionsMarkdown/Program.cs b/Source/Tools/GenerateGrafanaFunctionsMarkdown/Program.cs index c2ff10eff7..d610326960 100644 --- a/Source/Tools/GenerateGrafanaFunctionsMarkdown/Program.cs +++ b/Source/Tools/GenerateGrafanaFunctionsMarkdown/Program.cs @@ -175,6 +175,7 @@ private static string GetCleanMarkdown(string? xmlCommentText) .ReplaceTag("para", "
") .ReplaceSeeHref() .ReplaceSeeCref() + .ReplaceGtLtTags() .ReplaceExecutionModeLinks() ?? string.Empty; } @@ -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("<", "<") + .Replace(">", ">"); + } + public static string ReplaceExecutionModeLinks(this string text) { return text