Skip to main content

Convert Markdown to DOCX with support for Mermaid diagrams

Project description

一个MCP Server。 一个功能强大的Markdown转DOCX文档转换器,支持Mermaid图表渲染。 A MCP Server. A powerful Markdown to DOCX document converter that supports rendering Mermaid charts as images.

特性/Features

  • 将Markdown文件转换为Word DOCX格式/Convert Markdown files to Word DOCX format
  • 自动渲染Mermaid图表为图像/Auto render Mermaid charts as images
    • 支持指定Mermaid主题['default','dark','forest','ocean','elegant']/Support specifying Mermaid themes ['default', 'dark', 'forest', 'ocean', 'elegant']
  • 支持代码块格式化和语法高亮/Support code block formatting and syntax highlighting
  • 支持表格、列表和其他Markdown元素/Support tables, lists, and other Markdown elements
    • 支持指定表格主题/Support specifying table themes ['Normal Table', 'Table Grid', 'Light Shading', 'Light Shading Accent 1', 'Light Shading Accent 2', 'Light Shading Accent 3', 'Light Shading Accent 4', 'Light Shading Accent 5', 'Light Shading Accent 6', 'Light List', 'Light List Accent 1', 'Light List Accent 2', 'Light List Accent 3', 'Light List Accent 4', 'Light List Accent 5', 'Light List Accent 6', 'Light Grid', 'Light Grid Accent 1', 'Light Grid Accent 2', 'Light Grid Accent 3', 'Light Grid Accent 4', 'Light Grid Accent 5', 'Light Grid Accent 6', 'Medium Shading 1', 'Medium Shading 1 Accent 1', 'Medium Shading 1 Accent 2', 'Medium Shading 1 Accent 3', 'Medium Shading 1 Accent 4', 'Medium Shading 1 Accent 5', 'Medium Shading 1 Accent 6', 'Medium Shading 2', 'Medium Shading 2 Accent 1', 'Medium Shading 2 Accent 2', 'Medium Shading 2 Accent 3', 'Medium Shading 2 Accent 4', 'Medium Shading 2 Accent 5', 'Medium Shading 2 Accent 6', 'Medium List 1', 'Medium List 1 Accent 1', 'Medium List 1 Accent 2', 'Medium List 1 Accent 3', 'Medium List 1 Accent 4', 'Medium List 1 Accent 5', 'Medium List 1 Accent 6', 'Medium List 2', 'Medium List 2 Accent 1', 'Medium List 2 Accent 2', 'Medium List 2 Accent 3', 'Medium List 2 Accent 4', 'Medium List 2 Accent 5', 'Medium List 2 Accent 6', 'Medium Grid 1', 'Medium Grid 1 Accent 1', 'Medium Grid 1 Accent 2', 'Medium Grid 1 Accent 3', 'Medium Grid 1 Accent 4', 'Medium Grid 1 Accent 5', 'Medium Grid 1 Accent 6', 'Medium Grid 2', 'Medium Grid 2 Accent 1', 'Medium Grid 2 Accent 2', 'Medium Grid 2 Accent 3', 'Medium Grid 2 Accent 4', 'Medium Grid 2 Accent 5', 'Medium Grid 2 Accent 6', 'Medium Grid 3', 'Medium Grid 3 Accent 1', 'Medium Grid 3 Accent 2', 'Medium Grid 3 Accent 3', 'Medium Grid 3 Accent 4', 'Medium Grid 3 Accent 5', 'Medium Grid 3 Accent 6', 'Dark List', 'Dark List Accent 1', 'Dark List Accent 2', 'Dark List Accent 3', 'Dark List Accent 4', 'Dark List Accent 5', 'Dark List Accent 6', 'Colorful Shading', 'Colorful Shading Accent 1', 'Colorful Shading Accent 2', 'Colorful Shading Accent 3', 'Colorful Shading Accent 4', 'Colorful Shading Accent 5', 'Colorful Shading Accent 6', 'Colorful List', 'Colorful List Accent 1', 'Colorful List Accent 2', 'Colorful List Accent 3', 'Colorful List Accent 4', 'Colorful List Accent 5', 'Colorful List Accent 6', 'Colorful Grid', 'Colorful Grid Accent 1', 'Colorful Grid Accent 2', 'Colorful Grid Accent 3', 'Colorful Grid Accent 4', 'Colorful Grid Accent 5', 'Colorful Grid Accent 6']

使用方法/Usage

  "mcpServers": {
    "md-to-docx": {
      "command": "uvx",
        "args": [
            "md-to-docx",
            "server"
        ]
    }
  }
from md_to_docx import md_to_docx

md_to_docx("# Test\nHello World", "output.docx")
md-to-docx convert .\test.md -o output.docx
md-to-docx convert --help
md-to-docx server

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

md_to_docx-0.1.8.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

md_to_docx-0.1.8-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file md_to_docx-0.1.8.tar.gz.

File metadata

  • Download URL: md_to_docx-0.1.8.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.4

File hashes

Hashes for md_to_docx-0.1.8.tar.gz
Algorithm Hash digest
SHA256 70e04185917d424c7bb07a0b63d813cef843c23cdc39576fd24b95b07248f6a7
MD5 3eac611a49a47f5bbca9537280db1510
BLAKE2b-256 36ca16b87f54feb14cf7ce58d2024594853a54d8c9837212200befd973ccb3d4

See more details on using hashes here.

File details

Details for the file md_to_docx-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for md_to_docx-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 287c2f07d0da6c8bfedc6b7ac42c28ff20f9e8271be379fd5b54aa3c6f406106
MD5 e3e716610a9458dd2eea967726b83727
BLAKE2b-256 56fc954a62cc9fbc5dca958ab5068f9be13d6a47a135e46e5732ce99925d4bf0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page