The example highlights lines 2, line 5 to 7 and lines 9 to the end of the file.
using System;
diff --git a/test/docfx.Snapshot.Tests/SamplesTest.cs b/test/docfx.Snapshot.Tests/SamplesTest.cs
index 0a3be2889da..05c3c1a2b87 100644
--- a/test/docfx.Snapshot.Tests/SamplesTest.cs
+++ b/test/docfx.Snapshot.Tests/SamplesTest.cs
@@ -176,7 +176,10 @@ static Task CompareImage(Stream received, Stream verified, string
static string NormalizeHtml(string html)
{
- return Regex.Replace(Regex.Replace(html, "", ""), @"mermaid-\d+", "");
+ html = Regex.Replace(html, "", "");
+ html = Regex.Replace(html, @"mermaid-\d+", "");
+ html = Regex.Replace(html, @"flowchart-\w+-\d", "");
+ return html;
}
}