Upgrade latex2mathml from 3.78.1 to 3.81.1

未关闭
#6,442 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
python
领域
testing

调研方向

Start with contentcuration/contentcuration/tests/utils/test_markdown.py and the three assertions for \cdot, \times, and \div; the issue says they still expect <mi> while latex2mathml 3.81.1 emits <mo>. Check the dependency pins in requirements.in and requirements.txt, then run the Markdown tests and the full pytest suite. Done means the dependency is pinned at 3.81.1, those assertions expect <mo>, and the suite passes.

由索引模型根据 Issue 内容生成。

描述

dependencies DEV: backend

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Overview

Dependabot PR #6434 bumped latex2mathml from 3.78.1 to 3.81.1, and "Python unit tests" failed on it. latex2mathml 3.79.0 (roniemartinez/latex2mathml#545) added \ast, \cdot, \div and \times to its operator list, so these now render as <mo> rather than <mi>. Three assertions in test_markdown.py still expect the old <mi> output.

Complexity: Low
Target branch: unstable

Context
  • convert is called only in _convert, whose output feeds the QTI MathML models at publish.
  • Expectations that hardcode <mi> for an operator:
  • 3.80.0 and 3.81.0 also changed output: \hat is now a stretchy accent, \href renders as mrow, and macros and numbered align are supported. No current test exercises these.
  • No other package has to move with this one.
The Change
  • One PR should land the bump along with test expectations that match the 3.81.1 output.
Acceptance Criteria
  • latex2mathml==3.81.1 is pinned in requirements.in and requirements.txt.
  • $$x\cdot y$$, $$c \times d$$ and $$a\div b$$ convert to MathML with the operator in <mo>, and test_markdown.py asserts this.
  • The full pytest suite passes on 3.81.1, including the QTI MathML and exercise-creation tests.

AI usage

Claude Code drafted this issue from its review of #6434. It found the cause in latex2mathml's commits between 3.78.1 and 3.81.1 and in Studio's test expectations.

Filed from #6434's review.

主要语言
JavaScript
星标
214
派生
327
平均合并
17 小时 5 分钟
30 天内合并 PR
25

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

learningequality/studio 的其他 Issue

查看 learningequality/studio 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。