Skip to content

Commit

Permalink
feat: support markdown mermaid (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
zmh-program committed Mar 16, 2024
1 parent 93c18bb commit 865d5d0
Show file tree
Hide file tree
Showing 13 changed files with 500 additions and 29 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ English | [简体中文](https://github.com/Deeptrain-Community/chatnio/blob/mas
- Supports drawing with DALL-E models
- Supports **Imagine** / **Upscale** / **Variant** / **Reroll** operations for Midjourney / Niji models
![Midjourney](/screenshot/code.png)
2. **Markdown Support / Theme Switching Support**, supports light and dark modes, code highlighting, LaTeX formulas, tables, progress bars, Virtual Message, etc.
2. **Markdown Support / Theme Switching Support**, supports light and dark modes, code highlighting, Mermaid, LaTeX formulas, tables, progress bars, Virtual Message, etc.
![Markdown Message](/screenshot/latex.jpg)
3. **Support for Message Menu**, including re-answering, copying messages, using messages, editing messages, deleting messages, saving as a file, and more operations...
4. **Support for Multi-platform Adaptation**, supports PWA apps, desktop platforms (desktop is based on [Tauri](https://github.com/tauri-apps/tauri)).
Expand Down
2 changes: 1 addition & 1 deletion README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ _🚀 **Next Generation AI One-Stop Solution**_
- 支持 DALL-E 模型绘图
- 支持 Midjourney / Niji 模型的 **Imagine** / **Upscale** / **Variant** / **Reroll** 操作
![Midjourney 绘图](/screenshot/code.png)
2. **丰富 Markdown 支持和主题切换**, 支持明暗模式, 代码高亮, LaTeX 公式, 表格, 进度条, Virtual Message 等
2. **丰富 Markdown 支持和主题切换**, 支持明暗模式, 代码高亮, Mermaid, LaTeX 公式, 表格, 进度条, Virtual Message 等
![Markdown 消息](/screenshot/latex.jpg)
3. **支持消息菜单**, 支持重新回答, 复制消息, 使用消息, 编辑消息, 删除消息, 保存为文件等操作
![Vision 支持](/screenshot/vision.png)
Expand Down
2 changes: 2 additions & 0 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"localforage": "^1.10.0",
"lucide-react": "^0.309.0",
"match-sorter": "^6.3.1",
"mermaid": "^10.9.0",
"next-themes": "^0.2.1",
"react": "^18.2.0",
"react-beautiful-dnd": "^13.1.1",
Expand All @@ -66,6 +67,7 @@
"sort-by": "^1.2.0",
"tailwind-merge": "^1.14.0",
"tailwindcss-animate": "^1.0.7",
"use-debounce": "^10.0.0",
"vaul": "^0.9.0",
"workbox-window": "^7.0.0"
},
Expand Down
Loading

0 comments on commit 865d5d0

Please sign in to comment.