Skip to content

Commit 8a9ab1e

Browse files
xiaoboxclaude
andcommitted
docs: 添加 LaTeX 数学公式支持说明
- 在效果预览部分添加公式支持的介绍 - 在项目特性部分详细说明公式语法和渲染方式 - 说明行内公式 ($...$) 和块级公式 ($$...$$) 的用法 - 强调基于 MathJax 3 渲染为 SVG,兼容微信公众号 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5742bd3 commit 8a9ab1e

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

README.en.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,14 @@
4545

4646
![](https://xiaobox-public-images.oss-cn-beijing.aliyuncs.com/images20250810144616512.png)
4747

48-
### Mermaid support
48+
### Mermaid diagram support
4949

5050
![](https://xiaobox-public-images.oss-cn-beijing.aliyuncs.com/images20250814231133156.png)
5151

52+
### LaTeX math formula support
53+
54+
Supports inline formulas `$E=mc^2$` and block formulas `$$...$$`, rendered to SVG via MathJax 3, fully compatible with WeChat Official Accounts.
55+
5256
### Settings panel (Theme / Code style / Font / Spacing)
5357

5458
![](https://xiaobox-public-images.oss-cn-beijing.aliyuncs.com/images20250810144902477.png)
@@ -69,6 +73,11 @@
6973
- Mermaid node view supported; table cells with backticks have targeted compatibility fixes for display and copy.
7074
- Unified with the theme/code-style/typography system.
7175
- One-click viewport switch: desktop / tablet / mobile.
76+
- LaTeX math formula support
77+
- Inline formulas: wrap with single dollar sign `$E=mc^2$`.
78+
- Block formulas: wrap with double dollar signs `$$...$$`, supports multi-line.
79+
- Rendered to SVG via MathJax 3 for perfect WeChat compatibility.
80+
- Formulas are auto-styled when copying to WeChat — no extra adjustments needed.
7281
- One-click copy as WeChat/social HTML
7382
- Automatic inline styles (font family/size, line height, letter spacing, palette).
7483
- Themed adaptations and detail polish (headings, lists, quotes, code, tables, etc.).

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,14 @@
4747

4848
![](https://xiaobox-public-images.oss-cn-beijing.aliyuncs.com/images20250810144616512.png)
4949

50-
### 支持 mermaid
50+
### 支持 Mermaid 图表
5151

5252
![](https://xiaobox-public-images.oss-cn-beijing.aliyuncs.com/images20250814231133156.png)
5353

54+
### 支持 LaTeX 数学公式
55+
56+
支持行内公式 `$E=mc^2$` 和块级公式 `$$...$$`,基于 MathJax 3 渲染为 SVG,完美兼容微信公众号。
57+
5458
### 设置面板(主题 / 代码样式 / 字体 / 间距)
5559

5660
![](https://xiaobox-public-images.oss-cn-beijing.aliyuncs.com/images20250810144902477.png)
@@ -72,6 +76,11 @@
7276
- 支持 Mermaid 节点视图;表格内反引号在少数场景做了兼容处理,确保展示与复制兼容。
7377
- 保持与主题/代码样式/排版系统一致。
7478
- 预览视口一键切换:`桌面 / 平板 / 手机`
79+
- **LaTeX 数学公式支持**
80+
- 行内公式:使用单美元符 `$E=mc^2$` 包裹。
81+
- 块级公式:使用双美元符 `$$..$$` 包裹,支持跨行。
82+
- 基于 MathJax 3 渲染为 SVG,确保微信公众号完美兼容。
83+
- 复制到公众号时自动处理公式样式,无需额外调整。
7584
- **一键复制为公众号/社交平台格式**
7685
- 自动注入内联样式(字体、字号、行高、字距、配色)。
7786
- 主题化适配与细节增强(标题、列表、引用、代码、表格等)。

0 commit comments

Comments
 (0)