
md2docx
by Yorick-Ryu
A lightweight browser extension designed for AI users to easily copy formulas from ChatGPT, DeepSeek, Grok and 10+ other AI conversations, export beautifully formatted Word documents, and support long conversation screenshot sharing for DeepSeek.
SKILL.md
name: md2docx description: Convert Markdown to Word (DOCX) documents. Use when user wants to export, convert, or create Word documents from Markdown content. api_key: ""
md2docx - Markdown to Word Converter
Convert Markdown text to professionally formatted Word (DOCX) documents.
Quick Start
To convert Markdown to Word, use the conversion script:
python scripts/convert.py input.md
The script handles API authentication, calls the conversion service, and returns a download URL.
How It Works
- Prepare Markdown: Ensure content is in standard Markdown format
- Run Script: Execute
scripts/convert.pyto call the conversion API - Get Result: Receive download URL or error message
API Details
Endpoint: https://api.deepshare.app/convert-text-to-url
Authentication: Include header X-API-Key: {api_key}
API Key Configuration
You can configure the API key in three ways:
-
Environment Variable (Highest Priority)
export DEEP_SHARE_API_KEY="your_api_key_here" -
Skill Variable (Medium Priority) Edit the
api_keyfield in the YAML frontmatter of this Skill file:--- name: md2docx api_key: "your_api_key_here" --- -
Trial Key (Fallback):
f4e8fe6f-e39e-486f-b7e7-e037d2ec216f
Priority Order:
- Environment variable
DEEP_SHARE_API_KEY(if set) - Skill's
api_keyvariable (if not empty) - Trial key (limited quota)
⚠️ Trial Mode: Limited quota. For stable production use, purchase at: https://ds.rick216.cn/purchase
Request Format
{
"content": "markdown text here",
"filename": "output",
"template_name": "templates",
"language": "zh",
"hard_line_breaks": false,
"remove_hr": false
}
Parameters
| Parameter | Default | Description |
|---|---|---|
content | required | Markdown text to convert |
filename | "output" | Output filename (without .docx) |
template_name | "templates" | Template: templates, 论文, article, thesis, etc. |
language | "zh" | Template language: zh or en |
hard_line_breaks | false | Preserve single line breaks |
remove_hr | false | Remove horizontal rules |
Common Templates
Chinese (language: "zh"):
templates- General purpose论文- Academic paper论文-首行不缩进- Paper without indent论文-标题加粗- Paper with bold headings
English (language: "en"):
templates- General purposearticle- Article/report stylethesis- Academic thesis
Conversion Steps
1. Validate Markdown Format
Before conversion, ensure:
- Headers use
#syntax - Lists use
-or1.syntax - Code blocks use triple backticks
- Math formulas use
$...$(inline) or$$...$$(block) - Images use publicly accessible URLs
2. Use Conversion Script
Run the conversion script to handle API calls automatically:
python scripts/convert.py input.md [template] [language]
The script will:
- Automatically select API key by priority (env → skill → trial)
- Read and validate the Markdown file
- Call the conversion API
- Return the download URL or error message
Example usage:
# Basic conversion
python scripts/convert.py document.md
# With specific template
python scripts/convert.py paper.md 论文 zh
# With custom API key
python scripts/convert.py doc.md templates zh your_api_key
3. Handle Response
Success (200 OK):
{
"url": "https://flies.deepshare.app/mcp/hash/document_xxx.docx"
}
Error Responses:
401 Unauthorized- Invalid API key403 Forbidden- Quota exceeded → Purchase at https://ds.rick216.cn/purchase413 Payload Too Large- Content exceeds 10MB500 Internal Server Error- Service unavailable, retry
User Communication
On Success
Tell user:
- Conversion completed successfully
- Provide the download URL
- Check which API key was used:
- If using environment variable or Skill variable: No reminder needed
- If using trial key: Remind: "⚠️ You're using trial mode (limited quota). For stable production use, get your API key at: https://ds.rick216.cn/purchase"
On Quota Exceeded
Tell user:
- Conversion failed: quota exceeded
- Purchase more credits at: https://ds.rick216.cn/purchase
- Or use another API key
On Other Errors
Tell user:
- What went wrong (based on error message)
- How to fix it
- Offer to retry
Tips
- API Key Configuration:
- Option 1 (Recommended): Set environment variable
DEEP_SHARE_API_KEYexport DEEP_SHARE_API_KEY="your_api_key_here" - Option 2: Edit
api_keyin this Skill's YAML frontmatter - Option 3: Use trial key (limited quota)
- Option 1 (Recommended): Set environment variable
- File Size: Keep Markdown under 10MB
- Images: Use
https://URLs, not local paths - Math: Use LaTeX syntax:
$E=mc^2$or$$\int_0^\infty$$ - Line Breaks: Use
hard_line_breaks: truefor addresses, poetry - Templates: Choose based on document type (paper, article, etc.)
Example Workflow
User asks: "Convert this to Word"
-
Save the Markdown content to a temporary file (e.g.,
temp.md) -
Run the conversion script:
python scripts/convert.py temp.md -
The script will automatically:
- Select API key by priority (env → skill → trial)
- Validate the Markdown content
- Call the conversion API
- Return results
-
Parse the script output:
- On success: Extract and provide the download URL
- Check if trial key was used → show purchase reminder if needed
- On failure: Extract error message and explain to user
-
Clean up temporary file
Score
Total Score
Based on repository quality metrics
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
1ヶ月以内に更新
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
Reviews
Reviews coming soon


