Native LaTeX math formula renderer for Paseo desktop and mobile clients
npmjs · Paseo 0.9+
paseo plugin add npm:paseo-latex-renderer@0.1.0GitHub · Paseo 0.8 fallback
paseo plugin add lingluo831/paseo-latex-renderer --ref d0985f0407fcab3cc74c40bb576210a72197cca2Git security status and fallback installation are pinned to commit d0985f0407fc.
README
Paseo 的原生 LaTeX 公式渲染插件,适用于 Paseo Desktop、Web 和 Mobile。
它可以在聊天内容中优雅地渲染数学公式、科学符号与复杂表达式,帮助你直接阅读行内公式、块级公式、矩阵、积分、求和和多行数学环境等内容,适合研究、教学、工程与 AI 对话场景。
GitHub: https://github.com/lingluo831/paseo-latex-renderer
npm: https://www.npmjs.com/package/paseo-latex-renderer
paseo-latex-renderer 是一个用于 Paseo 的客户端插件,用于在消息中渲染 LaTeX 数学公式。
它支持:
$E=mc^2$ 和 \(E=mc^2\)$$...$$ 和 \[...\]```math 和 ```latexaligned、align、cases、matrix、bmatrix、pmatrix、\frac、\sum、\int、\partial 等$100、$100 and $200 等金额不会被误判为公式\$ 等转义符会被保留为普通文本python、ts 等代码块不会被错误解析在运行 Paseo Daemon 的主机上执行:
paseo plugin install npm:paseo-latex-renderer
如果你喜欢也可以使用等价的别名命令:
paseo plugin add npm:paseo-latex-renderer
安装后,可以查看插件状态:
paseo plugin ls
如果插件状态为 running,说明插件已成功安装并启用。
打开 Paseo 客户端;
进入 Settings → Plugins;
在 Plugin source 中输入:
npm:paseo-latex-renderer
点击 Install plugin;
安装完成后,在插件列表中确认状态为 running。
也可以直接从 GitHub 安装:
paseo plugin install lingluo831/paseo-latex-renderer
或者:
paseo plugin add lingluo831/paseo-latex-renderer
查看已安装插件:
paseo plugin ls
重新加载插件:
paseo plugin reload paseo-latex-renderer
启用插件:
paseo plugin enable paseo-latex-renderer
禁用插件:
paseo plugin disable paseo-latex-renderer
移除插件:
paseo plugin remove paseo-latex-renderer
下面内容适合需要从源码构建、调试或二次开发的用户。
cd paseo-latex-renderer
npm install
npm run build
npm run typecheck
npm run test
paseo 命令找不到确认你已经安装了 Paseo,并且当前终端中可访问该命令:
paseo --version
如果命令不可用,请重新打开终端,或确认 Paseo 已正确安装并加入到了 PATH 环境变量中。
disabled请先确认 Paseo 已经启用插件系统,然后重新加载配置:
paseo plugin ls
paseo reload
如果插件仍然未生效,可以再次查看插件列表并确认 paseo-latex-renderer 是否已成功安装。
常见原因是公式分隔符没有闭合,例如:
$E = mc^2 缺少结尾 $$$ ... $$ 未正确闭合建议先检查原始文本是否为:
$E = mc^2$
或:
\[
\int_0^1 x^2 \, dx = \frac{1}{3}
\]
该插件会优雅回退,不会因为不支持的命令导致聊天崩溃。若某些命令无法渲染,通常是因为:
这类情况通常会保留为普通文本,而不是让整个消息失效。
插件会尽量自动继承 Paseo 当前的前景色和表面色,因此通常不需要额外配置。若样式异常,建议:
如果你在远程环境中使用 Paseo Daemon,请确认:
paseo plugin ls 中看到paseo-latex-renderer/
├── paseo-plugin.json
├── package.json
├── tsconfig.json
├── vitest.config.ts
├── index.client.tsx
├── client/
│ ├── katex-css.ts
│ ├── math-parser.ts
│ ├── math-renderer.tsx
│ ├── markdown-renderer.tsx
│ └── web.tsx
├── scripts/
│ └── inline-fonts.mjs
├── tests/
│ ├── latex-renderer.test.ts
│ └── react-native-mock.ts
└── README.md
本项目采用 MIT License 开源。详细条款请参阅仓库根目录中的 LICENSE 文件。
欢迎提交 Issue 和 Pull Request,帮助改进公式支持、解析边界处理和渲染体验。
如果你发现 LaTeX 语法无法正确渲染,建议附上最小复现用例,并说明预期效果与实际表现。
Scanned 15 Oct 2026, 12:32 UTC from lingluo831/paseo-latex-renderer.