diff --git a/gatsby-node.js b/gatsby-node.js index 8c6176df..bec853b1 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -781,7 +781,7 @@ const getTitle = (pages, slug, node) => { const firstLine = node?.rawMarkdownBody?.split("\n", 1)[0] title = firstLine?.replace(/#/g, "") } - return title + return title?.replace(//gs, "") } exports.sourceNodes = async ({