@atikk-co-jp/notion-mcp-server 0.10.2 → 0.11.0
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.ja.md +12 -2
- package/README.md +11 -1
- package/dist/src/converters/__tests__/block-to-markdown.test.js +368 -90
- package/dist/src/converters/__tests__/markdown-to-blocks.test.js +446 -0
- package/dist/src/converters/__tests__/page-to-markdown.test.js +153 -0
- package/dist/src/converters/block-to-markdown.d.ts +0 -6
- package/dist/src/converters/block-to-markdown.d.ts.map +1 -1
- package/dist/src/converters/block-to-markdown.js +40 -192
- package/dist/src/converters/index.d.ts +1 -1
- package/dist/src/converters/index.d.ts.map +1 -1
- package/dist/src/converters/index.js +1 -1
- package/dist/src/converters/markdown-to-blocks.d.ts.map +1 -1
- package/dist/src/converters/markdown-to-blocks.js +290 -7
- package/dist/src/converters/rich-text-to-markdown.d.ts.map +1 -1
- package/dist/src/converters/rich-text-to-markdown.js +13 -0
- package/dist/src/schemas/descriptions/fields.d.ts +7 -0
- package/dist/src/schemas/descriptions/fields.d.ts.map +1 -1
- package/dist/src/schemas/descriptions/fields.js +12 -0
- package/dist/src/tools/append-blocks-simple.d.ts.map +1 -1
- package/dist/src/tools/append-blocks-simple.js +3 -4
- package/dist/src/tools/create-page-simple.js +1 -1
- package/dist/src/tools/get-block-children.js +3 -3
- package/dist/src/tools/retrieve-block.d.ts.map +1 -1
- package/dist/src/tools/retrieve-block.js +8 -5
- package/package.json +1 -1
package/README.ja.md
CHANGED
|
@@ -198,6 +198,16 @@ Markdownを使ってページを作成します。`create-page`と比較して**
|
|
|
198
198
|
- テーブル: `| col1 | col2 |` (ヘッダーセパレーター `|---|---|` 対応)
|
|
199
199
|
- インライン: `**太字**`、`*イタリック*`、`~~取り消し線~~`、`` `コード` ``、`[リンク](url)`
|
|
200
200
|
|
|
201
|
+
**拡張Markdown (双方向変換対応):**
|
|
202
|
+
- トグル: `<details><summary>タイトル</summary>コンテンツ</details>`
|
|
203
|
+
- コールアウト: `> [!NOTE]`, `> [!WARNING]`, `> [!TIP]`, `> [!IMPORTANT]`, `> [!CAUTION]`
|
|
204
|
+
- 数式: `$$E = mc^2$$` (インライン/ブロック両対応)
|
|
205
|
+
- 下線: `<u>テキスト</u>` または `++テキスト++`
|
|
206
|
+
- 文字色: `{color:red}テキスト{/color}`, `{bg:yellow}テキスト{/bg}`
|
|
207
|
+
- ブックマーク: `[bookmark](url)` または `[bookmark:キャプション](url)`
|
|
208
|
+
- カラム: `:::columns` / `:::column` / `:::`
|
|
209
|
+
- メディア: `@[embed](url)`, `@[video](url)`, `@[audio](url)`, `@[file](url)`, `@[pdf](url)`
|
|
210
|
+
|
|
201
211
|
```json
|
|
202
212
|
{
|
|
203
213
|
"data_source_id": "データソースのUUID",
|
|
@@ -434,10 +444,10 @@ Markdownを使ってブロックを追加します。`append-block-children`と
|
|
|
434
444
|
- `content` (必須): 新しいコンテンツ(Markdown形式)
|
|
435
445
|
- `dry_run` (任意): 削除されるブロックをプレビュー(実際には変更しない)(デフォルト: false)
|
|
436
446
|
|
|
437
|
-
**⚠️ 注意:** Markdownで表現できないブロック(
|
|
447
|
+
**⚠️ 注意:** 拡張Markdownで表現できないブロック(table_of_contents, synced_block等)は**削除されます**。実行前に `dry_run: true` でプレビューを確認してください。
|
|
438
448
|
|
|
439
449
|
**サポートするMarkdown記法:**
|
|
440
|
-
|
|
450
|
+
`create-page-simple`と同じMarkdown記法(基本記法+拡張Markdown)をサポート。
|
|
441
451
|
|
|
442
452
|
```json
|
|
443
453
|
{
|
package/README.md
CHANGED
|
@@ -197,6 +197,16 @@ Create a new page using Markdown. **~80% fewer output tokens** compared to `crea
|
|
|
197
197
|
- Tables: `| col1 | col2 |` with header separator `|---|---|`
|
|
198
198
|
- Inline: `**bold**`, `*italic*`, `~~strike~~`, `` `code` ``, `[link](url)`
|
|
199
199
|
|
|
200
|
+
**Extended Markdown (bidirectional):**
|
|
201
|
+
- Toggle: `<details><summary>title</summary>content</details>`
|
|
202
|
+
- Callout: `> [!NOTE]`, `> [!WARNING]`, `> [!TIP]`, `> [!IMPORTANT]`, `> [!CAUTION]`
|
|
203
|
+
- Equation: `$$E = mc^2$$` (inline/block)
|
|
204
|
+
- Underline: `<u>text</u>` or `++text++`
|
|
205
|
+
- Color: `{color:red}text{/color}`, `{bg:yellow}text{/bg}`
|
|
206
|
+
- Bookmark: `[bookmark](url)` or `[bookmark:caption](url)`
|
|
207
|
+
- Columns: `:::columns` / `:::column` / `:::`
|
|
208
|
+
- Media: `@[embed](url)`, `@[video](url)`, `@[audio](url)`, `@[file](url)`, `@[pdf](url)`
|
|
209
|
+
|
|
200
210
|
```json
|
|
201
211
|
{
|
|
202
212
|
"data_source_id": "data-source-uuid-here",
|
|
@@ -433,7 +443,7 @@ Replace all content of a page with new Markdown content. Automatically preserves
|
|
|
433
443
|
- `content` (required): New content in Markdown
|
|
434
444
|
- `dry_run` (optional): Preview which blocks will be deleted without making changes (default: false)
|
|
435
445
|
|
|
436
|
-
**⚠️ Warning:** Blocks not
|
|
446
|
+
**⚠️ Warning:** Blocks not representable in Extended Markdown (table_of_contents, synced_block, etc.) will be **DELETED**. Use `dry_run: true` to preview before executing.
|
|
437
447
|
|
|
438
448
|
**Use when:** You want to completely rewrite page content without finding individual block IDs.
|
|
439
449
|
|