notro-loader 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
An Astro Content Loader library that fetches Notion database content via the [Markdown Content API](https://developers.notion.com/) into [Astro Content Collections](https://docs.astro.build/en/guides/content-collections/).
|
|
7
7
|
|
|
8
8
|
> [!TIP]
|
|
9
|
-
>
|
|
9
|
+
> This package is part of the [mosugi/notro](https://github.com/mosugi/notro) monorepo. See the blog template at `templates/blog/` for a full working example.
|
|
10
10
|
|
|
11
11
|
## What NotroContent renders
|
|
12
12
|
|
|
@@ -146,17 +146,17 @@ const { entry } = Astro.props;
|
|
|
146
146
|
|
|
147
147
|
Components are copied into `src/components/notro/` so you can edit them directly.
|
|
148
148
|
|
|
149
|
-
## Markdown processing (remark-
|
|
149
|
+
## Markdown processing (remark-notro)
|
|
150
150
|
|
|
151
|
-
`notro-loader` delegates Notion Markdown preprocessing and directive syntax support to the [`remark-
|
|
151
|
+
`notro-loader` delegates Notion Markdown preprocessing and directive syntax support to the [`remark-notro`](https://www.npmjs.com/package/remark-notro) package.
|
|
152
152
|
|
|
153
|
-
`remark-
|
|
153
|
+
`remark-notro` is used inside notro-loader's MDX compile pipeline and is applied automatically when using `NotroContent`.
|
|
154
154
|
|
|
155
|
-
If you want to use `remark-
|
|
155
|
+
If you want to use `remark-notro` directly (in a custom unified pipeline or `@mdx-js/mdx`'s `evaluate()`), import it from the `remark-notro` package directly rather than from `notro-loader`.
|
|
156
156
|
|
|
157
157
|
```ts
|
|
158
|
-
// ✅ Import directly from remark-
|
|
159
|
-
import { remarkNfm, preprocessNotionMarkdown } from "remark-
|
|
158
|
+
// ✅ Import directly from remark-notro
|
|
159
|
+
import { remarkNfm, preprocessNotionMarkdown } from "remark-notro";
|
|
160
160
|
|
|
161
161
|
// ❌ Not needed from notro-loader (internal use only)
|
|
162
162
|
// import { remarkNfm } from "notro-loader";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "notro-loader",
|
|
3
3
|
"description": "A Content loader for Astro that uses the Notion Public API",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "mosugi <mosugeek@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"src/utils"
|
|
43
43
|
],
|
|
44
44
|
"engines": {
|
|
45
|
-
"node": ">=
|
|
45
|
+
"node": ">=24.0.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"astro": ">=6.0.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"rehype-raw": "^7.0.0",
|
|
66
66
|
"rehype-slug": "^6.0.0",
|
|
67
67
|
"unist-util-visit": "^5.0.0",
|
|
68
|
-
"remark-notro": "0.0.
|
|
68
|
+
"remark-notro": "0.0.3"
|
|
69
69
|
},
|
|
70
70
|
"optionalDependencies": {
|
|
71
71
|
"@shikijs/rehype": "^4.0.0"
|