Skip to content

Commit 81d0467

Browse files
committed
Avoid reporting warnings for HTML headings
1 parent b19bbee commit 81d0467

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

DocumentationAnalyzers/DocumentationAnalyzers.Test/StyleRules/DOC100UnitTests.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ public async Task TestMultipleBlockElementsAsync()
8686
/// <!-- Supported HTML block-level elements -->
8787
/// <div>Remarks.</div>
8888
/// <p>Remarks.</p>
89+
/// <h1>Heading</h1>
90+
/// <h2>Heading</h2>
91+
/// <h3>Heading</h3>
92+
/// <h4>Heading</h4>
93+
/// <h5>Heading</h5>
94+
/// <h6>Heading</h6>
8995
/// </remarks>
9096
public class ClassName
9197
{

DocumentationAnalyzers/DocumentationAnalyzers/StyleRules/BlockLevelDocumentationAnalyzerBase.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,12 @@ private static bool IsBlockLevelName(XmlNameSyntax name, bool includePotentialEl
179179

180180
// block-level HTML elements => allow for this diagnostic
181181
case "div":
182+
case "h1":
183+
case "h2":
184+
case "h3":
185+
case "h4":
186+
case "h5":
187+
case "h6":
182188
case "p":
183189
return true;
184190

0 commit comments

Comments
 (0)