Merge pull request #21278 from adfoster-r7/fix-msftidy-heading-in-codeblock-edgecase

Fix msftidy heading in codeblock edgecase
This commit is contained in:
cgranleese-r7
2026-04-23 13:23:55 +01:00
committed by GitHub
+1 -1
View File
@@ -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