notion-md

Convert Markdown to Notion blocks with full format support. Handles bold, italic, strikethrough, inline code, headings, lists, tables, callouts, and more.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "notion-md" with this command: npx skills add maweis1981/notion-md

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
**bold**bold annotation
*italic*italic annotation
~~text~~strikethrough
`code`code annotation
---divider
- itembulleted_list_item
1. itemnumbered_list_item
> quotequote
textcode block
::: calloutcallout
| 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

VariableDescription
NOTION_API_KEYNotion API key
NOTION_PARENT_PAGE_IDDefault parent page ID

API Version

Notion API: 2022-06-28

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

OpenClaw Mobile Gateway Installer

Installs and manages OpenClaw mobile gateway as a system service. Invoke when users need one-command deploy, start, stop, upgrade, or uninstall.

Registry SourceRecently Updated
Coding

Cli Builder

CLI tool generator. Project scaffolding, command adding, argument parsing, help docs, config handling, publish checklist, interactive prompts, colored output...

Registry SourceRecently Updated
1870ckchzh
Coding

kintone Ops

Build, query, and automate Cybozu kintone apps — Japan's leading no-code business platform with global deployments. Use this skill whenever the user mentions...

Registry SourceRecently Updated
Coding

CEO Master

Transforms the agent into a strategic CEO and orchestrator. Vision, decision-making, resource allocation, team dispatch, scaling playbook from €0 to €1B. Use...

Registry SourceRecently Updated