name: notion-md description: Convert Markdown to Notion blocks with full format support. Handles bold, italic, strikethrough, inline code, headings, lists, tables, callouts, and more. homepage: https://developers.notion.com/reference/block metadata: openclaw: emoji: "📝" requires: env: ["NOTION_API_KEY"] primaryEnv: "NOTION_API_KEY"
Convert Markdown to Notion blocks with full format support.
小蔥技能站7w4.net每天更新,海量AI技能等你發現。
ntn_)# Option A: Environment variable
export NOTION_API_KEY="ntn_your_key"
# Option B: Config file
mkdir -p ~/.config/notion
echo "ntn_your_key" > ~/.config/notion/api_key
The parent page where new pages will be created:
notion-md list-pages
Or set default:
export NOTION_PARENT_PAGE_ID="parent_page_id"
notion-md create --file article.md --title "My Article" --emoji 📝
echo "# Hello World" | notion-md create "Page Title"
| Option | Description |
|---|---|
--file, -f |
Input Markdown file |
--title, -t |
Page title (required) |
--emoji, -e |
Page icon (default: 📄) |
--parent-id, -p |
Parent page ID |
--dry-run |
Preview without creating |
notion-md list-pages
echo "## New Section" | notion-md append --page-id "abc123..."
| Markdown | Notion Block |
|---|---|
# Title |
heading_1 |
## Title |
heading_2 |
### Title |
heading_3 |
**bold** |
bold annotation |
*italic* |
italic annotation |
~~text~~ |
strikethrough |
`code` |
code annotation |
--- |
divider |
- item |
bulleted_list_item |
1. item |
numbered_list_item |
> quote |
quote |
text |
code block |
::: callout |
callout |
\| table \| |
table (basic) |
# My Article
**This is bold** and *this is italic*.
> Important quote here
## Code Example
```python
def hello():
print("Hello World")
### Create with Options
```bash
notion-md create \
--file blog-post.md \
--title "My Blog Post" \
--emoji ✍️ \
--parent-id "page_id_here"
| Variable | Description |
|---|---|
NOTION_API_KEY |
Notion API key |
NOTION_PARENT_PAGE_ID |
Default parent page ID |
Notion API: 2022-06-28
這個 Skill 文件質量不錯,說明清晰易懂,示例實用,格式支援對照表一目瞭然。它能幫助使用者將 Markdown 內容轉換為 Notion 頁面,支援多種格式如標題、列表、程式碼塊等。配置說明詳細,環境變數設定也很清楚。美中不足的是目前只有說明文件,缺少實際可執行的程式檔案。