gatsby-source-notion-churnotion 1.0.54 → 1.0.56
Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,11 @@ const processTableOfContents = async (blocks, actions, getCache, createNodeId, r
|
|
12
12
|
block.type === "heading_2" ||
|
13
13
|
block.type === "heading_3")) {
|
14
14
|
const plainText = block[block.type]?.rich_text[0]?.plain_text || "";
|
15
|
-
const hash =
|
15
|
+
const hash = `link-${plainText
|
16
|
+
.replace(/[^a-zA-Z0-9가-힣\s-_]/g, "")
|
17
|
+
.trim()
|
18
|
+
.replace(/\s+/g, "-")
|
19
|
+
.toLowerCase()}`;
|
16
20
|
block.hash = hash;
|
17
21
|
tableOfContents.push({
|
18
22
|
type: block.type,
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "gatsby-source-notion-churnotion",
|
3
3
|
"description": "Gatsby plugin that can connect with One Notion Database RECURSIVELY using official API",
|
4
|
-
"version": "1.0.
|
4
|
+
"version": "1.0.56",
|
5
5
|
"skipLibCheck": true,
|
6
6
|
"license": "0BSD",
|
7
7
|
"main": "./dist/gatsby-node.js",
|