docs: fix regex for parsing page title

This commit is contained in:
tbreuss 2023-05-03 16:56:13 +02:00 committed by Claudia Meadows
parent 8cce14c2d7
commit 2b897c4ce6

View file

@ -161,7 +161,7 @@ class Generator {
)
const markedHtml = marked(body)
const title = body.match(/^#([^\n\r]+)/i) || []
const title = body.match(/^#\s+([^\n\r]+)/m) || []
let result = this._layout
if (title[1]) {