Skip to content
AIPMAndyPublic

About

基于 Quarkdown 的 Markdown 多格式转换:一份源文件生成文档、分页书籍/论文和幻灯片|Markdown to docs, paged docs & slides | 微信 AIPMAndy · 官网 https://metaver.vip/

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📝 MDtoAll

强大的 Markdown 多格式转换工具 | Powerful Markdown Conversion Toolkit

License: GPL v3 GitHub release PRs Welcome

English | 中文

一句话简介

基于 Quarkdown 的 Markdown 多格式转换:一份源文件生成文档、分页书籍/论文和幻灯片|Markdown to docs, paged docs & slides

  • 作者:AI酋长Andy(Andy Liu,英文名 AI Chief Andy),流量 AI 联合创始人、星觉 AI 创始人。星觉科技,北京。
  • 阅读或使用:GitHub 仓库
  • 联系:微信 AIPMAndy(备注「MDtoAll」)· 官网 metaver.vip · X @AIPMAndy
  • 许可:MIT。内容免费使用;企业合作或个人陪跑请先沟通,公开页不公示价格。
  • 机器可读摘要:llms.txt(供 AI 引擎与检索工具读取)

常见问题

**这是什么?**基于 Quarkdown 的 Markdown 多格式转换:一份源文件生成文档、分页书籍/论文和幻灯片|Markdown to docs, paged docs & slides

**包含什么?**主要模块:中文、功能展示、English、Feature Showcase、作者 / About the author。

**要花钱吗?**按 MIT 许可免费使用;付费只涉及作者的企业合作与一对一咨询,不影响仓库内容。

**怎么开始?**克隆仓库后按下方 README 的快速开始部分操作;无需付费账号即可阅读全部内容。


中文

🎯 这是什么?

MDtoAll 是一个基于 Quarkdown 的 Markdown 增强转换系统。它让你用一份 Markdown 源文件,轻松生成多种专业格式的文档。

一次编写,随处发布 —— 从笔记到论文,从演示文稿到技术文档,一个工具搞定。

✨ 核心特性

📄 多种文档类型

  • 普通文档 - 类似 Notion 的连续流式布局,适合网站和笔记
  • 分页文档 - LaTeX 级别的排版质量,适合书籍、论文和报告
  • 幻灯片 - 基于 reveal.js 的交互式演示文稿
  • 技术文档 - 适合 Wiki 和知识库的文档站点

🎨 强大功能

  • 函数系统 - 用 .function {name} 语法扩展 Markdown
  • 图灵完备 - 内置变量、循环和条件渲染
  • 专业排版 - LaTeX 质量的输出,但没有 LaTeX 的复杂性
  • 实时预览 - 编辑时热重载,所见即所得
  • 丰富内容 - 数学公式、图表、代码高亮
  • 布局控制 - 容器、列、对齐、间距完全可控

📦 输出格式

  • ✅ HTML(支持所有文档类型)
  • ✅ PDF(通过 Puppeteer)
  • ✅ 纯文本

🚀 快速开始

安装要求

  • Java 17 或更高版本
  • Node.js 和 npm(用于 PDF 导出)

macOS/Linux 安装

# 使用 Homebrew
brew install quarkdown-labs/quarkdown/quarkdown

# 或使用安装脚本
curl -fsSL https://raw.githubusercontent.com/quarkdown-labs/get-quarkdown/refs/heads/main/install.sh | sudo env "PATH=$PATH" bash

Windows 安装

# 使用安装脚本
irm https://raw.githubusercontent.com/quarkdown-labs/get-quarkdown/refs/heads/main/install.ps1 | iex

# 或使用 Scoop
scoop bucket add java
scoop bucket add quarkdown https://github.com/quarkdown-labs/scoop-quarkdown
scoop install quarkdown

从源码构建

git clone https://github.com/AIPMAndy/MDtoAll.git
cd MDtoAll
./gradlew installDist

📖 使用示例

创建第一个文档

# 创建新项目
quarkdown create my-project

# 或手动创建 .qd 文件
cat > hello.qd << 'EOF'
.doctype {plain}

# 你好,世界

这是 **MDtoAll** 的演示!

.center
    居中的文本块

## 功能展示

.row alignment:{spacebetween}
    ![图片1](img1.png)
    ![图片2](img2.png)
    ![图片3](img3.png)
EOF

编译文档

# 基础编译
quarkdown c hello.qd

# 实时预览(推荐)
quarkdown c hello.qd -p -w

# 导出 PDF
quarkdown c hello.qd --pdf

高级语法示例

自定义函数:

.function {问候}
    名字 来自:
    **你好,.名字!** 来自 .来自

.问候 {世界} 来自:{MDtoAll}

输出:你好,世界! 来自 MDtoAll

文档类型设置:

.doctype {plain}   # 默认:连续流
.doctype {paged}   # 打印就绪的分页
.doctype {slides}  # 演示模式
.doctype {docs}    # 文档站点

📊 对比其他工具

MDtoAll LaTeX Typst AsciiDoc MDX
语法简洁易读 ✅ ❌ ✅ ✅ ✅
完整文档控制 ✅ ✅ ✅ ❌ ❌
脚本支持 ✅ 部分 ✅ ❌ ✅
多种输出格式 ✅ ❌ 部分 ✅ ✅
学习曲线 低 高 中 低 低

🤝 贡献

欢迎贡献!请查看 CONTRIBUTING.md 了解详情。

📜 许可证

  • 核心模块:GNU GPLv3
  • CLI 和 LSP:GNU AGPLv3

详见 LICENSE。

🙏 致谢

MDtoAll 是 Quarkdown 的分支,由 Giorgio Garofalo 创建。感谢原作者和所有贡献者。


English

🎯 What is MDtoAll?

MDtoAll is a versatile Markdown-based document conversion system forked from Quarkdown. It transforms a single Markdown source into multiple professional output formats.

Write once, publish everywhere — from notes to papers, from presentations to technical documentation.

✨ Key Features

📄 Multiple Document Types

  • Plain Documents - Notion-like continuous flow for websites and notes
  • Paged Documents - LaTeX-quality typography for books, papers, and reports
  • Slides - Interactive presentations powered by reveal.js
  • Documentation - Technical wikis and knowledge bases

🎨 Powerful Capabilities

  • Function System - Extend Markdown with .function {name} syntax
  • Turing-Complete - Built-in variables, loops, and conditional rendering
  • Professional Typography - LaTeX-quality output without LaTeX complexity
  • Live Preview - Real-time hot reload during editing
  • Rich Content - Math equations, diagrams, code highlighting
  • Layout Control - Full control over containers, columns, alignment, spacing

📦 Output Formats

  • ✅ HTML (all document types)
  • ✅ PDF (via Puppeteer)
  • ✅ Plain Text

🚀 Quick Start

Prerequisites

  • Java 17 or higher
  • Node.js and npm (for PDF export)

Installation on macOS/Linux

# Using Homebrew
brew install quarkdown-labs/quarkdown/quarkdown

# Or using install script
curl -fsSL https://raw.githubusercontent.com/quarkdown-labs/get-quarkdown/refs/heads/main/install.sh | sudo env "PATH=$PATH" bash

Installation on Windows

# Using install script
irm https://raw.githubusercontent.com/quarkdown-labs/get-quarkdown/refs/heads/main/install.ps1 | iex

# Or using Scoop
scoop bucket add java
scoop bucket add quarkdown https://github.com/quarkdown-labs/scoop-quarkdown
scoop install quarkdown

Build from Source

git clone https://github.com/AIPMAndy/MDtoAll.git
cd MDtoAll
./gradlew installDist

📖 Usage Examples

Create Your First Document

# Create a new project
quarkdown create my-project

# Or manually create a .qd file
cat > hello.qd << 'EOF'
.doctype {plain}

# Hello World

This is **MDtoAll** in action!

.center
    Centered text block

## Feature Showcase

.row alignment:{spacebetween}
    ![Image 1](img1.png)
    ![Image 2](img2.png)
    ![Image 3](img3.png)
EOF

Compile Documents

# Basic compilation
quarkdown c hello.qd

# Live preview (recommended)
quarkdown c hello.qd -p -w

# Export to PDF
quarkdown c hello.qd --pdf

Advanced Syntax Examples

Custom Functions:

.function {greet}
    name from:
    **Hello, .name!** from .from

.greet {World} from:{MDtoAll}

Output: Hello, World! from MDtoAll

Document Type Settings:

.doctype {plain}   # Default: continuous flow
.doctype {paged}   # Print-ready pages
.doctype {slides}  # Presentation mode
.doctype {docs}    # Documentation site

📊 Comparison with Other Tools

MDtoAll LaTeX Typst AsciiDoc MDX
Readable syntax ✅ ❌ ✅ ✅ ✅
Full document control ✅ ✅ ✅ ❌ ❌
Scripting support ✅ Partial ✅ ❌ ✅
Multiple output types ✅ ❌ Partial ✅ ✅
Learning curve Low High Medium Low Low

🤝 Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

📜 License

  • Core modules: GNU GPLv3
  • CLI and LSP: GNU AGPLv3

See LICENSE for details.

🙏 Credits

MDtoAll is a fork of Quarkdown by Giorgio Garofalo. We extend our gratitude to the original author and all contributors.


Made with ❤️ by Andy

⭐ Star this repo if you find it useful!


作者 / About the author

AI 酋长 Andy(Andy Liu,GitHub/X @AIPMAndy):前腾讯/百度 AI 产品专家,大模型独角兽前 VP,现专注 AI + 产品方法论创业。

微信 AIPMAndy(备注「MDtoAll」) · X @AIPMAndy · Telegram @AIPMAndy · 个人官网 metaver.vip

AI Chief Andy (Andy Liu, @AIPMAndy on GitHub and X) is a former Tencent and Baidu AI product expert and former VP at an LLM unicorn, now a serial entrepreneur focused on AI and product methodology.

作者的其他项目

  • AndySoul:CLAUDE.md / AGENTS.md 规则模板,让 Claude Code、Codex、Cursor 少犯错
  • DNA Memory:Claude Code、Codex 共用的本地 AI Agent 记忆 MCP
  • SafeSkill:装 AI Skill 之前,先扫危险命令、提示注入和密钥泄露
  • OpenClaw Skills 中文精选:OpenClaw Skills 分类整理,附国产模型接入指南
  • Grok Bot 中文攻略:AI Agent 中文教程

About

基于 Quarkdown 的 Markdown 多格式转换:一份源文件生成文档、分页书籍/论文和幻灯片|Markdown to docs, paged docs & slides | 微信 AIPMAndy · 官网 https://metaver.vip/

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages