diff --git a/index.html b/index.html
index 012fca2..d20fd89 100644
--- a/index.html
+++ b/index.html
@@ -237,7 +237,7 @@
.then((response) => response.text())
.then(wait)
.then((text) => {
- const [, title] = text.match(/^(#\s\w+)/) ||
+ const [, title] = text.match(/^#\s+(\w+.+)/) ||
text.match(/(.*?)\n===+/m) || [, path];
document.title = `${title} | ${mainTitle}`;
if (params.has("source")) {