From 9dbea3d5e2a1427455010552f5fdbd71b1a1dac2 Mon Sep 17 00:00:00 2001 From: adfoster-r7 Date: Mon, 13 Apr 2026 13:51:28 +0100 Subject: [PATCH] Fix msftidy heading in codeblock edgecase --- tools/dev/msftidy_docs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/dev/msftidy_docs.rb b/tools/dev/msftidy_docs.rb index e27e51d1b6..72bfdb9ee5 100755 --- a/tools/dev/msftidy_docs.rb +++ b/tools/dev/msftidy_docs.rb @@ -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