
MarkCard Studio 是一款本地优先的 Markdown 社交媒体卡片排版与导出工具。将 Markdown 一键生成精致卡片与 PDF,支持智能分页、小红书/抖音/微博等平台尺寸、16 款内
MarkCard Studio is a local-first desktop authoring tool for content creators and knowledge sharers. Write in Markdown, let the studio paginate and typeset the content, choose a visual style and target canvas, then export a complete set of images or a PDF. Documents, local images, settings, and rendered output stay on your computer.
MarkCard Studio is under active development. Interfaces and document behavior may change before a stable release.
##, by ## and ###, by a custom delimiter, by character count, or with adaptive smart pagination.The files in imgs/EN are real card exports produced by MarkCard Studio.
PDF demo: View the complete 7-page PDF export
| Layer | Technology |
|---|---|
| Desktop shell | Tauri 2, Rust |
| Interface | Vue 3, JavaScript, Vite 6, vue-i18n |
| Styling | Tailwind CSS 4, DaisyUI, theme-specific CSS |
| Editor | CodeMirror 6 |
| Markdown | markdown-it and plugins |
| Rich content | Highlight.js, KaTeX, Mermaid, ECharts |
| Export | html-to-image, jsPDF |
| Icons | Lucide |
MarkCard Studio natively supports interactive and static ECharts diagrams directly in Markdown via echarts code blocks. Charts automatically adapt to card themes and dark mode, respect compact vertical spacing, and export sharply to high-resolution PNG, JPG, and PDF without rasterization clipping.
Write an echarts code block using either JSON format or JavaScript Object format:
Strict JSON syntax with double-quoted keys. Great for structured data, API responses, and AI-generated content:
```echarts
{
"title": { "text": "Quarterly Revenue" },
"xAxis": {
"data": ["Q1", "Q2", "Q3", "Q4"]
},
"yAxis": { "type": "value" },
"series": [{
"type": "bar",
"data": [320, 500, 680, 890]
}]
}
```Standard JavaScript object syntax with unquoted keys, single quotes, trailing commas, and optional comments:
```echarts
{
title: { text: 'Quarterly Revenue' },
xAxis: {
data: ['Q1', 'Q2', 'Q3', 'Q4']
},
yAxis: { type: 'value' },
series: [{
type: 'bar',
data: [320, 500, 680, 890]
}]
}
```MarkCard Studio automatically infers optimal chart heights based on chart complexity. If you want to explicitly specify a fixed pixel height, two main syntax formats are supported on the code fence:
Direct number (Concise):
```echarts 260
{ ... }
```(Also accepts echarts 260px)
Attribute assignment (height=... or h=...):
```echarts height=260
{ ... }
```(Also accepts echarts h=260 or echarts height:260)
Tip: You can also specify height inside the code block via a leading comment (e.g.
// height: 260) or directly as an Option property ({ "height": 260, ... }). Height values are safely bounded between 120px and 600px.
bar): Category comparisons, quarterly results, horizontal ranking bars.line): Time series trends, smoothed metrics, area curves.pie): Channel distribution and composition breakdown with outer label clipping prevention and symmetric centering.Quick Insertion: Click the ** Insert Chart** button in the editor toolbar to open a dropdown menu and insert ready-to-use bar, line, or pie templates with built-in syntax tips.
git clone https://github.com/pangxiaobin/MarkCardStudio.git
cd MarkCardStudio
pnpm installpnpm tauri dev# Build native application bundles
pnpm tauri buildNative bundle types depend on the host operating system and installed Tauri prerequisites.
…Contributor and coding-agent guidance lives in AGENTS.md.
Issues and pull requests are welcome. Keep changes focused, preserve preview/export visual parity, and run both the frontend build and Rust checks for changes that cross the desktop boundary. See AGENTS.md for the repository's architecture and validation checklist.
The bundled OpenMoji stickers are provided by OpenMoji under CC BY-SA 4.0. Their attribution is retained in public/stickers/openmoji/README.md. Third-party assets remain subject to their own licenses.
MarkCard Studio is free software licensed under the GNU General Public License v3.0. You may use, study, modify, and redistribute it under the terms of that license.
No open issues yet, or sync has not completed.