Merge pull request #21278 from adfoster-r7/fix-msftidy-heading-in-codeblock-edgecase
Fix msftidy heading in codeblock edgecase
This commit is contained in:
@@ -257,7 +257,7 @@ class MsftidyDoc
|
||||
warn("Instructional text not removed", idx)
|
||||
end
|
||||
|
||||
if ln =~ /^# /
|
||||
if !in_codeblock && ln =~ /^# /
|
||||
warn("No H1 (#) headers. If this is code, indent.", idx)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user