Skip to content

Commit d7c00ef

Browse files
tbreussdead-claudia
authored andcommitted
docs: fix regex for parsing page title
1 parent e74e679 commit d7c00ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generate-docs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class Generator {
161161
)
162162

163163
const markedHtml = marked(body)
164-
const title = body.match(/^#([^\n\r]+)/i) || []
164+
const title = body.match(/^#\s+([^\n\r]+)/m) || []
165165

166166
let result = this._layout
167167
if (title[1]) {

0 commit comments

Comments
 (0)