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 a621d9d411
commit 811c216cb4
No known key found for this signature in database
GPG key ID: C86B594396786760

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]) {