diff --git a/demo/markdownlint-browser.js b/demo/markdownlint-browser.js
index c4543886..8ba5d84b 100644
--- a/demo/markdownlint-browser.js
+++ b/demo/markdownlint-browser.js
@@ -3558,11 +3558,24 @@ module.exports = {
var tag = "h" + level;
var foundFrontMatterTitle = frontMatterHasTitle(params.frontMatterLines, params.config.front_matter_title);
if (!foundFrontMatterTitle) {
+ var htmlHeadingRe_1 = new RegExp("^]", "i");
params.tokens.every(function (token) {
+ var isError = false;
if (token.type === "html_block") {
- return true;
+ if (token.content.startsWith("
diff --git a/test/h1-image-as-top-level-heading.md b/test/h1-image-as-top-level-heading.md
new file mode 100644
index 00000000..a36f0113
--- /dev/null
+++ b/test/h1-image-as-top-level-heading.md
@@ -0,0 +1,7 @@
+

+
+Text
+
+
diff --git a/test/h2-as-top-level-heading.md b/test/h2-as-top-level-heading.md
new file mode 100644
index 00000000..3d9745f9
--- /dev/null
+++ b/test/h2-as-top-level-heading.md
@@ -0,0 +1,10 @@
+H2 as Top-Level Heading
+
+Text
+
+
diff --git a/test/h3-as-top-level-heading.md b/test/h3-as-top-level-heading.md
new file mode 100644
index 00000000..f06e7e97
--- /dev/null
+++ b/test/h3-as-top-level-heading.md
@@ -0,0 +1,7 @@
+H3 as Top-Level Heading {MD041}
+
+Text
+
+