Notion Md

👤 maweis1981 📦 v1.0.0 ⭐ 3.8 ⬇️ 1.1K 下载
📄 办公效率 免费 🔑 需 API Key

📖 技能介绍


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"


notion-md

Convert Markdown to Notion blocks with full format support.

Features

  • Rich Text: Bold, italic, strikethrough, inline code, underline, color
  • Headings: H1, H2, H3 with proper styling
  • Lists: Bulleted, numbered, toggle lists

    本技能来自小葱技能站7w4.net。

  • Blocks: Quotes, callouts, dividers, code blocks
  • Advanced: Tables, nested content, links
  • Parent Page: Configurable parent page ID

Setup

1. Get Notion API Key

  1. Go to https://www.notion.so/my-integrations
  2. Create new integration
  3. Copy the API key (starts with ntn_)

2. Configure API Key

# 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

3. Get Parent Page ID

The parent page where new pages will be created:

notion-md list-pages

Or set default:

export NOTION_PARENT_PAGE_ID="parent_page_id"

Usage

Create Page from File

notion-md create --file article.md --title "My Article" --emoji 📝

Create from stdin

echo "# Hello World" | notion-md create "Page Title"

Options

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

List Pages

notion-md list-pages

Append to Page

echo "## New Section" | notion-md append --page-id "abc123..."

Notion Format Mapping

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)

Examples

Rich Content

# My Article

**This is bold** and *this is italic*.

> Important quote here

## Code Example

```python
def hello():
    print("Hello World")
  • Item 1
  • Item 2

### Create with Options

```bash
notion-md create \
  --file blog-post.md \
  --title "My Blog Post" \
  --emoji ✍️ \
  --parent-id "page_id_here"

Environment Variables

Variable Description
NOTION_API_KEY Notion API key
NOTION_PARENT_PAGE_ID Default parent page ID

API Version

Notion API: 2022-06-28

🤖 AI 评测

这个 Skill 文档质量不错,说明清晰易懂,示例实用,格式支持对照表一目了然。它能帮助用户将 Markdown 内容转换为 Notion 页面,支持多种格式如标题、列表、代码块等。配置说明详细,环境变量设置也很清楚。美中不足的是目前只有说明文档,缺少实际可运行的程序文件。

📊 多维度评分

适应性4.3
规范性3.8
有效性3.5
可靠性3.7
可信度4.4

📁 包含文件 (7 个)

📄 README.md 903 B
📄 SKILL.md 3 KB
📄 _meta.json 128 B
📄 dist/README.md 903 B
📄 dist/SKILL.md 3 KB
📄 dist/requirements.txt 56 B
📄 requirements.txt 56 B