← 返回
效率工具 Key 中文

Notion Md

Convert Markdown to Notion blocks with full format support. Handles bold, italic, strikethrough, inline code, headings, lists, tables, callouts, and more.
将Markdown转换为Notion块,支持粗体、斜体、删除线、行内代码、标题、列表、表格、标注等全部格式。
maweis1981
效率工具 clawhub v1.0.0 1 版本 99884.3 Key: 需要
★ 0
Stars
📥 863
下载
💾 38
安装
1
版本
#latest

概述

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
  • 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

OptionDescription
---------------------
--file, -fInput Markdown file
--title, -tPage title (required)
--emoji, -ePage icon (default: 📄)
--parent-id, -pParent page ID
--dry-runPreview without creating

List Pages

notion-md list-pages

Append to Page

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

Notion Format Mapping

MarkdownNotion Block
------------------------
# Titleheading_1
## Titleheading_2
### Titleheading_3
boldbold annotation
italicitalic annotation
~~text~~strikethrough
` code `code annotation
---divider
- itembulleted_list_item
1. itemnumbered_list_item
> quotequote
```text```code block
::: calloutcallout
`\table \`table (basic)

Examples

Rich Content

# My Article

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

> Important quote here

## Code Example

def hello():

print("Hello World")


- Item 1
- Item 2

Create with Options

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

Environment Variables

VariableDescription
-----------------------
NOTION_API_KEYNotion API key
NOTION_PARENT_PAGE_IDDefault parent page ID

API Version

Notion API: 2022-06-28

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 09:56 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 446 📥 226,455
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,962
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 440 📥 148,117