├── .eslintrc.json ├── .gitignore ├── README.md ├── app ├── favicon.ico ├── fonts │ ├── GeistMonoVF.woff │ └── GeistVF.woff ├── globals.css ├── layout.tsx └── page.tsx ├── article.md ├── components ├── ContactModal.tsx ├── EditorPanel.tsx ├── Preview.tsx ├── PreviewPanel.tsx └── ThemeSwitcher.tsx ├── contexts └── ThemeContext.tsx ├── docs ├── promotion.md └── theme-optimization.md ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── postcss.config.mjs ├── public ├── file.svg ├── globe.svg ├── images │ ├── product.png │ ├── wx-qr-placeholder.svg │ └── wx-qr.jpg ├── next.svg ├── vercel.svg └── window.svg ├── tailwind.config.js ├── themes ├── dark.ts ├── default.ts ├── elegant.ts ├── index.ts ├── minimalist.ts ├── nature.ts ├── soft.ts └── warm.ts ├── tsconfig.json └── utils ├── defaultContent.ts ├── markdownConverter.ts └── themeUtils.ts /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # dependencies 2 | /node_modules 3 | /.pnp 4 | .pnp.js 5 | 6 | # testing 7 | /coverage 8 | 9 | # next.js 10 | /.next/ 11 | /out/ 12 | 13 | # production 14 | /build 15 | 16 | # misc 17 | .DS_Store 18 | *.pem 19 | 20 | # debug 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | 25 | # local env files 26 | .env*.local 27 | 28 | # vercel 29 | .vercel 30 | 31 | # typescript 32 | *.tsbuildinfo 33 | next-env.d.ts 34 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ✨ 飞书文档转公众号排版工具 2 | 3 |
一个强大的在线工具,助您快速将飞书文档转换为美观的微信公众号文章
7 | 8 | [](LICENSE) 9 | [](https://nextjs.org/) 10 | [](https://reactjs.org/) 11 | [](https://www.typescriptlang.org/) 12 |遇到问题或有建议?随时联系我!
118 | 119 | **点击工具右上角"联系作者"按钮可以:** 120 | - 📱 扫码添加作者微信 121 | - 🐱 访问 GitHub 项目 122 | - 💬 反馈问题和建议 123 | - 📚 获取使用帮助 124 |⭐ 如果这个项目对您有帮助,请给它一个 Star!
144 |💡 提示: 支持飞书文档的所有常用格式,让您的公众号文章更加专业美观
145 |让文档转换更简单
40 |长按识别或扫描二维码
76 |{children}
, 32 | img: ({ src, alt }: ComponentProps) => ( 33 | src ? ( 34 |{children}, 49 | code: ({ inline, className, children }: ComponentProps & { inline?: boolean; className?: string }) => { 50 | const match = /language-(\w+)/.exec(className || ''); 51 | const content = String(children).replace(/\n$/, ''); 52 | 53 | if (!inline && match) { 54 | // 代码块 55 | return ( 56 |
{children}
;
78 | }
79 | },
80 | table: ({ children }: ComponentProps) => {children}, 88 | ul: ({ children, depth = 0 }: ComponentProps & { depth?: number }) => ( 89 |