搜索

PythonReactSEOPDF
GitHub Skill

notion-formatter

Format markdown content for Notion import with proper syntax for toggles, code blocks, and tables. Use when formatting responses for Notion, creating Notion-compatible documentation, or preparing markdown for Notion paste/import.

TrevorS☆ 3 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Notion Formatter

Quick Start

Notion is a block-based editor, not a pure markdown system. It supports standard markdown for basic formatting (headers, lists, bold, italic, inline code), but many features require Notion-specific syntax or manual creation. This skill helps you format markdown optimally for Notion import by applying the right syntax, annotating manual steps, and warning about limitations.

Core Workflow

1. Identify Your Content Type
  • Claude response: Formatting text I just generated for Notion
  • Documentation: Converting existing .md files to Notion format
  • Mixed content: Markdown with images, code, tables
2. Apply Standard Markdown (What Works Everywhere)

Use standard markdown for these features—they'll convert automatically when pasted into Notion:

**bold** _italic_ `inline code` ~strikethrough~

# Heading 1

## Heading 2

### Heading 3

- Bullet point
- Another point
  - Nested bullet

1. Numbered item
2. Second item

[] Checkbox item
3. Use Notion-Specific Syntax

Key distinction: Use > for toggles (collapsible sections), " for blockquotes. See REFERENCE.md for detailed syntax and examples of all features.

Quick syntax:

> Toggle heading
> Hidden content here

" Blockquote text
code here
Column 1 Column 2
Data 1 Data 2

alt

4. Annotate Manual Steps

Mark features that need manual creation in Notion with annotations:

  • Equations: Use [NOTION: Recreate equation manually]
  • Other unsupported features: Use [NOTION: Feature name here]
5. Verify Output

Before sending to Notion, check:

  • Standard markdown is correct (headers, lists, formatting)
  • Toggle syntax uses > followed by space (greater-than space)
  • Blockquotes use " followed by space (quote space)
  • Code blocks have language labels
  • Images use full URLs, not local paths
  • Tables use pipe syntax
  • Manual step annotations are clear

Examples

Example 1: Formatting a Response

If I generate a response with code and a table, format it with language-labeled code blocks and pipe-syntax tables.

Code block example:

# Example code
def process_data(items):
    return [x * 2 for x in items]

Table example:

Input Output
1 2
5 10
Example 2: Converting Documentation

For multi-section documents, use toggles to create collapsible sections with > Section Title and content indented underneath.

Best Practices

  • Keep it simple: Avoid deeply nested structures
  • Test tables first: If a table is complex, consider creating it manually in Notion
  • Image URLs: Always verify images are accessible online
  • Break large docs: Paste in chunks if a document fails to import entirely
  • Manual polish: Always review in Notion after paste—fix extra line breaks and language detection

For detailed syntax, gotchas, and troubleshooting, see REFERENCE.md

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-02-03
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!