{"id":20704983,"url":"https://github.com/latentcat/mpmath","last_synced_at":"2025-04-09T20:08:00.932Z","repository":{"id":41064197,"uuid":"240520268","full_name":"latentcat/mpmath","owner":"latentcat","description":"微信公众号公式编辑插件","archived":false,"fork":false,"pushed_at":"2024-06-13T05:57:06.000Z","size":2313,"stargazers_count":193,"open_issues_count":9,"forks_count":32,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-09T20:07:50.797Z","etag":null,"topics":["chrome-extension","formula","mathjax","wechat"],"latest_commit_sha":null,"homepage":"https://troyni.com/mpmath","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/latentcat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-14T13:58:02.000Z","updated_at":"2025-04-03T05:39:34.000Z","dependencies_parsed_at":"2024-06-13T09:15:04.803Z","dependency_job_id":"3f8a5f23-0ad6-4af7-91d0-b5bf889a576b","html_url":"https://github.com/latentcat/mpmath","commit_stats":null,"previous_names":["latentcat/mpmath","ciaochaos/mpmath"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/latentcat%2Fmpmath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/latentcat%2Fmpmath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/latentcat%2Fmpmath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/latentcat%2Fmpmath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/latentcat","download_url":"https://codeload.github.com/latentcat/mpmath/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103872,"owners_count":21048245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chrome-extension","formula","mathjax","wechat"],"created_at":"2024-11-17T01:15:33.798Z","updated_at":"2025-04-09T20:08:00.896Z","avatar_url":"https://github.com/latentcat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mpMath — 微信公众号公式编辑插件\n\n以下文档或有延时。查看最新文档：[troyni.com/mpmath](https://troyni.com/mpmath)。\n\n想要在微信公众号的编辑器里输入公式吗？来试试我们的 Chrome 插件吧～\n\n相信不少人有在微信公众号上输入数学公式的需求，而微信至今没有推出官方的公式编辑器。有人被迫去选择一些新的工作流程，比如我在文章《[一道从初中做到大学的数学题](https://mp.weixin.qq.com/s/uCdL9gJUbIs0X5WCXiskgA)》中采用了 TeX -\u003e PDF -\u003e SVG 的制作流程，这对普通用户来说都有一定的门槛。有人妥协，选择用截图来插入公式，或是干脆用文字字符来拼凑公式，而等等这些都有一定的问题。在这样的情况下，我们选择自己写一个插件来满足公众号输入公式的需求。\n\n完全开源。  \n能力有限，许多问题尚未解决，许多功能尚未实现。如果大家能提供帮助的话，我们将感激不尽！\n\n### 特性\n\n- 使用 MathJax 渲染 SVG 格式的 LaTeX 公式\n- 嵌入微信公众号原生编辑器\n- 公式显示清晰、可调字号、支持字体颜色改变、支持 Dark Mode\n- 完整的快捷键支持\n- 适配通过 [Markdown Nice](https://mdnice.com) 插入的公式\n\n### 下载与安装\n\n#### 方式\n\n- Github：[mpMath](https://github.com/ciaochaos/mpMath)\n- 直接下载：[mpMath v0.2.1](https://github.com/ciaochaos/mpMath/releases/download/v0.2.1/mpMath.crx)\n- Chrome 应用商店：[mpMath](https://chrome.google.com/webstore/detail/mpmath/nodhgmlcnikgcdfnllmiodlimcdglchh)\n\n#### 安装步骤：\n\n1. 下载 CRX 文件\n2. 在 Chrome 中点击右上角 ︙ -\u003e 更多工具 -\u003e  扩展程序  \n   或打开 [chrome://extensions/](chrome://extensions/) \n3. 打开右上角开发者模式\n4. 将 CRX 文件拖入 Chrome 窗口\n5. 单击「添加扩展程序」，安装完成\n\n### 使用\n\n打开微信公众平台图文编辑界面，若 `公式` 已经出现在页面顶部 `音频` 的右侧，则说明插件成功运行。\n\n![](https://troyni.com/assets/building-mpmath/1fa9214e84c1455ee3278fb11b1e391a_MD5.jpg)\n\n点击 `公式` 即可新建公式并插入。点击已经插入的公式即可二次编辑。\n\n\u003e 如果你不太熟悉 LaTeX 语法，可以参考语雀的[数学公式举例](https://www.yuque.com/yuque/help/brzicb)、Apple 的[示例方程](https://support.apple.com/zh-cn/HT202501#sample)，或是这一份 [MathJax 基本教程和快速参考](https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference)（英文）。\n\n\u003e 如果你正在寻找基于 TeX 编写的数学题，推荐一个网站：[橘子数学](https://www.mathcrowd.cn/)。\n\n\u003e 如果你偏好非所见即所得的写作方式，试试这个：[Markdown Nice](https://mdnice.com)，同样对数学公式有着很好的支持。\n\n强烈推荐使用以下快捷键，提高输入效率。\n\n#### 快捷键\n\n| 操作         | 快捷键                                                       |\n| ------------ | ------------------------------------------------------------ |\n| 新建公式     | \u003ckbd\u003econtrol\u003c/kbd\u003e + \u003ckbd\u003e/\u003c/kbd\u003e\u003cbr /\u003e\u003ckbd\u003ecommand\u003c/kbd\u003e + \u003ckbd\u003e/\u003c/kbd\u003e |\n| 退出公式编辑 | \u003ckbd\u003eesc\u003c/kbd\u003e                                               |\n| 插入公式     | \u003ckbd\u003eshift\u003c/kbd\u003e + \u003ckbd\u003eenter\u003c/kbd\u003e                          |\n\n#### 可能遇到的问题\n\n- 输入行内公式的显式样式\n  - 公式前添加 `\\displaystyle`\n- 公式右侧的空格会与公式捆绑在一起\n  - 可以在空格右侧使用 \u003ckbd\u003eshift\u003c/kbd\u003e + \u003ckbd\u003e←\u003c/kbd\u003e 选中空格并删除\n- 公式不能被高亮选中、拖动\n  - 可同时选中公式左右侧的字符进行复制等操作\n\n### 反馈\n\n- 本页评论区\n- 邮箱：1272777550@qq.com\n- 微信：nhciao\n- 微信公众号：Isle of Chaos\n\n### 开发计划\n\n- 公式输入提示\n- 如 Typora 等的无模态弹窗公式输入\n- 一键转换 LaTeX 公式\n\n### 许可\n\n[The MIT License](https://opensource.org/licenses/MIT)\n\n### 作者\n\n- ciaochaos - CUC\n- CPunisher - BUAA\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flatentcat%2Fmpmath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flatentcat%2Fmpmath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flatentcat%2Fmpmath/lists"}