docs: fix regex for parsing page title
This commit is contained in:
parent
8cce14c2d7
commit
2b897c4ce6
1 changed files with 1 additions and 1 deletions
|
|
@ -161,7 +161,7 @@ class Generator {
|
||||||
)
|
)
|
||||||
|
|
||||||
const markedHtml = marked(body)
|
const markedHtml = marked(body)
|
||||||
const title = body.match(/^#([^\n\r]+)/i) || []
|
const title = body.match(/^#\s+([^\n\r]+)/m) || []
|
||||||
|
|
||||||
let result = this._layout
|
let result = this._layout
|
||||||
if (title[1]) {
|
if (title[1]) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue