← 返回
内容创作 中文

Mxe

Convert Markdown files to PDF, DOCX, or HTML with advanced formatting, Mermaid diagrams, custom fonts, and table of contents support.
将Markdown文件转换为PDF、DOCX或HTML,支持高级格式、Mermaid图表、自定义字体及目录。
tuanpmt
内容创作 clawhub v2.0.0 1 版本 99905 Key: 无需
★ 0
Stars
📥 2,104
下载
💾 165
安装
1
版本
#export#latest#markdown#mermaid#pdf

概述

MXE Skill - Markdown Export Tool

Convert Markdown files to PDF, DOCX, or HTML with advanced features.

When to Use

Use MXE when the user wants to:

  • Convert Markdown to PDF with nice formatting
  • Export documents with Mermaid diagrams
  • Generate PDFs with table of contents
  • Create professional documents from Markdown
  • Download web articles as Markdown

Installation Check

which mxe || echo "Not installed"

If not installed:

cd /Users/tuan/.openclaw/workspace/mxe && npm run build && npm link

Basic Usage

# Simple PDF conversion
mxe document.md

# With table of contents
mxe document.md --toc

# Specify output directory
mxe document.md -o ./output

Font Options

# Custom body font
mxe document.md --font roboto

# Custom code font  
mxe document.md --mono-font fira-code

# Both
mxe document.md --font inter --mono-font jetbrains-mono

Available body fonts: inter (default), roboto, lato, opensans, source-sans, merriweather

Available mono fonts: jetbrains-mono (default), fira-code, source-code

Mermaid Diagrams

# Default theme
mxe document.md

# Forest theme
mxe document.md --mermaid-theme forest

# Hand-drawn style
mxe document.md --hand-draw

# Dark theme with ELK layout
mxe document.md --mermaid-theme dark --mermaid-layout elk

Themes: default, forest, dark, neutral, base

Full Example

# Professional PDF with all features
mxe report.md \
  --toc \
  --font roboto \
  --mono-font fira-code \
  --mermaid-theme forest \
  -o ./output

Output Formats

mxe doc.md -f pdf      # PDF (default)
mxe doc.md -f docx     # Word document
mxe doc.md -f html     # HTML file
mxe doc.md -f clipboard # Copy to clipboard

Download Web Articles

# Download and convert URL to PDF
mxe https://example.com/article

# Download as Markdown only
mxe https://example.com/article -f clipboard

Tips

  1. Mermaid requires mmdc: Install with npm i -g @mermaid-js/mermaid-cli
  2. Images are embedded: Local images are base64 encoded into the PDF
  3. Custom CSS: Use -s style.css for custom styling
  4. Bookmarks: PDF bookmarks are auto-generated from headings (disable with --no-bookmarks)

Location

Tool source: /Users/tuan/.openclaw/workspace/mxe

版本历史

共 1 个版本

  • v2.0.0 当前
    2026-03-28 18:45 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,246
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 861 📥 200,186
developer-tools

1p.io Shortlink API

tuanpmt
使用 1p.io 创建短链接并提交功能请求。发送前自动将超过 80 字符的 URL 缩短。
★ 0 📥 1,304