Skip to content

Commit 3d145af

Browse files
authored
Merge pull request #54 from sharwell/block-elements
Block elements
2 parents bfe856e + 81d0467 commit 3d145af

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

DocumentationAnalyzers/DocumentationAnalyzers.Test/StyleRules/DOC100UnitTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,16 @@ public async Task TestMultipleBlockElementsAsync()
8282
/// <inheritdoc/>
8383
/// <token>SomeTokenName</token>
8484
/// <include />
85+
/// <quote>Quote</quote>
8586
/// <!-- Supported HTML block-level elements -->
8687
/// <div>Remarks.</div>
8788
/// <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>
8895
/// </remarks>
8996
public class ClassName
9097
{

DocumentationAnalyzers/DocumentationAnalyzers/StyleRules/BlockLevelDocumentationAnalyzerBase.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,18 @@ private static bool IsBlockLevelName(XmlNameSyntax name, bool includePotentialEl
173173
// potential block-level elements => allow
174174
case XmlCommentHelper.InheritdocXmlTag:
175175
case "include":
176+
case "quote":
176177
case "token":
177178
return true;
178179

179180
// block-level HTML elements => allow for this diagnostic
180181
case "div":
182+
case "h1":
183+
case "h2":
184+
case "h3":
185+
case "h4":
186+
case "h5":
187+
case "h6":
181188
case "p":
182189
return true;
183190

0 commit comments

Comments
 (0)