English first. Chinese follows below.
Markdown Mind Map is a Next.js application that turns Markdown text into a styled mind map in real time.
The app provides:
- A left-side Markdown editor
- A right-side live mind map canvas
- A presentation-style visual theme inspired by business/report mind maps
- PNG export
- PDF export
- A clean export background in
#FFFEFE
- Supports Markdown headings and lists
- Automatically builds hierarchical mind map branches
- Adjusts node width based on content length
- Uses colored top-level branches and straight connector lines
- Exports the current mind map as PNG or PDF
- Next.js 16
- React 19
- TypeScript
- Tailwind CSS 4
Install dependencies:
npm installStart the development server:
npm run devOpen http://localhost:3000 in your browser.
npm run buildnpm run lintapp/
components/
mindmap-workbench.tsx
globals.css
layout.tsx
page.tsx
- Paste or edit Markdown in the left panel
- The right panel renders the mind map immediately
- Use the export buttons to download PNG or PDF output
- The current parser is designed for headings and list-style outlines
- Exported PNG and PDF keep the same visual background as the canvas
- Layout and node sizing are calculated on the client side
本项目是一个基于 Next.js 的 Markdown 思维导图应用,左侧输入 Markdown,右侧实时生成思维导图。
- 左侧 Markdown 编辑区
- 右侧实时导图预览
- 更接近汇报场景的思维导图样式
- 支持导出 PNG
- 支持导出 PDF
- 导出背景统一为
#FFFEFE
- Markdown 标题层级
- 无序列表
- 有序列表
- 根据内容长度自动调整节点宽度
- 一级分支彩色区分
安装依赖:
npm install启动开发环境:
npm run dev浏览器打开 http://localhost:3000。
构建项目:
npm run build代码检查:
npm run lint