docs: fix regex for parsing page title
This commit is contained in:
parent
a621d9d411
commit
811c216cb4
1 changed files with 1 additions and 1 deletions
|
|
@ -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]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue