Skip to content

Commit

Permalink
docs: fix regex for parsing page title
Browse files Browse the repository at this point in the history
  • Loading branch information
tbreuss authored and dead-claudia committed May 4, 2023
1 parent 8cce14c commit 2b897c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down

0 comments on commit 2b897c4

Please sign in to comment.