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