We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 747d642 commit 181c1e5Copy full SHA for 181c1e5
lib/util/index.js
@@ -34,7 +34,7 @@ exports.inferTitle = function (frontmatter) {
34
if (frontmatter.data.title) {
35
return deeplyParseHeaders(frontmatter.data.title)
36
}
37
- const match = frontmatter.content.trim().match(/^#+\s+(.*)/)
+ const match = frontmatter.content.trim().match(/^#+\s+(.*)/m)
38
if (match) {
39
return deeplyParseHeaders(match[1])
40
0 commit comments