md2docx · emploidai Marketplace
emploidai Marketplace
Add-onsAppletsPlugins
Search tools, teams, and capabilitiesPublish
MarketplacePluginsmd2docx
Plugin
Limited listing

md2docx

by alexmultiagent · v0.0.1

Convert Markdown to polished DOCX with built-in Chinese/English templates. Supports technical document, business report, official document, academic paper, and thesis style presets, Mermaid diagram rendering, and fine-grained font/margin/spacing control.

453 installsUpdated Jun 15, 2026
Documentation
Publisher information is incomplete

This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.

Capabilities

Tools

Available inside your emploidai workspace after installation.

Data sources

Available inside your emploidai workspace after installation.

Category

tool

Version

0.0.1alexmultiagent

Requirements

Maximum memory 512MB

Pricing

Not disclosed by publisher

Security & access

Review before installing

CompatibleRequires emploidai 1.14.0+

Permissions

  • Uses storage capability
  • Uses tool capability

Dependencies

No additional dependencies

Resources

DocumentationPrivacy policy
emploidai Marketplace

Discover capabilities. Review access. Install inside your workspace.

DocumentationSecuritySupportPrivacyTerms

md2docx — Markdown to DOCX for Dify

Dify VS Code

Convert Markdown to polished Word documents inside Dify workflows. Built-in Chinese/English templates, Mermaid diagram rendering, and fine-grained style control. No API key required.

Documentation in Chinese | Marketplace

Tools

ToolParamsUse case
Markdown to DOCX6Everyday conversion — pick a profile and go
Markdown to DOCX (Advanced)19Full control over fonts, sizes, margins
Mermaid to Image2Render a standalone Mermaid diagram to PNG

Installation

From the Dify Marketplace

  1. In your Dify workspace, open Plugins → Marketplace.
  2. Search for md2docx.
  3. Click Install.

From a local .difypkg

pip install dify-plugin-cli
dify-plugin plugin package .
# Then in Dify: Plugins → Local → Upload → select the .difypkg

The package depends on pypandoc-binary, which bundles Pandoc inside the pip wheel. No GitHub download at runtime.

Features

  • 6 style profiles with built-in reference DOCX templates (Chinese + English × 6): technical, business, official (GB/T 9704), academic, thesis (GB/T 7713), and template.
  • Mermaid rendering via Mermaid Ink API. Inline in DOCX or standalone via the Mermaid to Image tool.
  • Fine-grained overrides: 13 advanced parameters for body/heading fonts, sizes, line spacing, and margins.
  • CJK-first: automatic Chinese/English detection with SimSun / SimHei / FangSong / KaiTi defaults.
  • Self-contained: pypandoc-binary bundles Pandoc; no runtime download.

Style Profiles

ProfileBody FontBody SizeHeadingsLine SpacingMargins (mm)Standard
technicalArial11 ptArial 16 / 14 / 12 pt1.3519Tech blogs, API docs
businessArial11 ptArial 18 / 14 / 12 pt1.525.4Business reports, memos
officialFangSong16 ptSimHei / KaiTi / FangSong 16 pt1.7537/35/28/26GB/T 9704
academicSimSun12 ptSimHei 16 / 14 / 12 pt1.525.4Academic writing, CSSCI
thesisSimSun12 ptSimHei 22 / 16 / 14 pt1.530GB/T 7713
template(from reference)————Fully custom

English official and thesis templates exist as compatibility companions; no specific English standard.

Parameters

Markdown to DOCX (6)

#ParameterTypeRequiredDefaultDescription
1markdown_contentstringyes—The Markdown text (max 5 MB; GFM, tables, images, Mermaid)
2titlestringno"Document"Output filename without .docx
3style_profileselectnoacademicStyle preset (see table above)
4reference_languageselectnoautoauto / english / chinese
5mermaid_enabledbooleannotrueRender Mermaid blocks to images
6mermaid_api_urlstringno—Self-hosted Mermaid Ink URL

Markdown to DOCX (Advanced)

All 6 core parameters above plus 13 style overrides: body_font, body_size_pt, line_spacing, margin_top_mm, margin_bottom_mm, margin_left_mm, margin_right_mm, heading1_font, heading1_size_pt, heading2_font, heading2_size_pt, heading3_font, heading3_size_pt. All default to profile preset or 0 (= use default).

Mermaid to Image (2)

#ParameterTypeRequiredDefaultDescription
1mermaid_codestringyes—Mermaid diagram syntax
2mermaid_api_urlstringno—Self-hosted Mermaid Ink URL

Self-hosted Mermaid

Deploy your own Mermaid Ink instance if the public service is slow or unreachable:

docker run -d --restart unless-stopped -p 3000:3000 ghcr.io/jihchi/mermaid.ink

With docker compose:

mermaid_ink:
  image: ghcr.io/jihchi/mermaid.ink
  restart: unless-stopped
  ports:
    - "3000:3000"

Then set mermaid_api_url to http://<host>:3000 (use http://mermaid_ink:3000 inside compose).

Network & Privacy

  • Mermaid Ink (https://mermaid.ink): Mermaid source code is sent for PNG rendering. No other data is transmitted. Disable via mermaid_enabled=false or use a self-hosted instance.
  • Pandoc: bundled in pypandoc-binary — no network access needed.
  • Temp files: cleaned up after each conversion. On Windows, paths may contain the OS username.

Full policy: PRIVACY.md.

Development

pip install -r requirements.txt
pip install -r requirements-dev.txt
pytest tests/ -v

Repository: mdocx-converter